aboutsummaryrefslogtreecommitdiffstats
path: root/features/support/step_definitions/tags_steps.rb
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-06-29 13:23:21 +1200
committerPhilip Arndt <parndt@gmail.com>2011-06-29 13:23:48 +1200
commitb725799fef031ca253e30236e5286edfd85c5cc8 (patch)
tree4f2f017b1b118c782e90076e31714fe540d3fd9d /features/support/step_definitions/tags_steps.rb
parentcf335800dad86ef9631bf83ccdd5c4855cc40153 (diff)
downloadrefinerycms-blog-b725799fef031ca253e30236e5286edfd85c5cc8.tar.gz
refinerycms-blog-b725799fef031ca253e30236e5286edfd85c5cc8.tar.bz2
refinerycms-blog-b725799fef031ca253e30236e5286edfd85c5cc8.zip
Refactored the spec suite to be consistent.
Diffstat (limited to 'features/support/step_definitions/tags_steps.rb')
-rw-r--r--features/support/step_definitions/tags_steps.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/support/step_definitions/tags_steps.rb b/features/support/step_definitions/tags_steps.rb
index 7b895e5..8280474 100644
--- a/features/support/step_definitions/tags_steps.rb
+++ b/features/support/step_definitions/tags_steps.rb
@@ -1,9 +1,9 @@
Given /^there is a blog post titled "([^"]*)" and tagged "([^"]*)"$/ do |title, tag_name|
- @blog_post = Factory(:post, :title => title, :tag_list => tag_name)
+ @blog_post = Factory.create(:blog_post, :title => title, :tag_list => tag_name)
end
When /^I visit the tagged posts page for "([^"]*)"$/ do |tag_name|
- @blog_post ||= Factory(:post, :tag_list => tag_name)
+ @blog_post ||= Factory.create(:blog_post, :tag_list => tag_name)
tag = BlogPost.tag_counts_on(:tags).first
visit tagged_posts_path(tag.id, tag_name.parameterize)
end