aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-06-27 11:40:59 +1200
committerPhilip Arndt <parndt@gmail.com>2011-06-27 11:40:59 +1200
commitbbfc87e4d999d9b94c3e301d638d97f5b21a223b (patch)
tree8ba431d9f31d25e9681bde8f38b47671c801fbf5
parentd70e39c789af6604472fc1cb3203e095b96a716e (diff)
downloadrefinerycms-blog-bbfc87e4d999d9b94c3e301d638d97f5b21a223b.tar.gz
refinerycms-blog-bbfc87e4d999d9b94c3e301d638d97f5b21a223b.tar.bz2
refinerycms-blog-bbfc87e4d999d9b94c3e301d638d97f5b21a223b.zip
Fixed failing tag feature.
-rw-r--r--features/support/step_definitions/tags_steps.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/features/support/step_definitions/tags_steps.rb b/features/support/step_definitions/tags_steps.rb
index a99b5d6..7b895e5 100644
--- a/features/support/step_definitions/tags_steps.rb
+++ b/features/support/step_definitions/tags_steps.rb
@@ -3,6 +3,8 @@ Given /^there is a blog post titled "([^"]*)" and tagged "([^"]*)"$/ do |title,
end
When /^I visit the tagged posts page for "([^"]*)"$/ do |tag_name|
+ @blog_post ||= Factory(:post, :tag_list => tag_name)
+ tag = BlogPost.tag_counts_on(:tags).first
visit tagged_posts_path(tag.id, tag_name.parameterize)
end