diff options
author | Philip Arndt <parndt@gmail.com> | 2011-06-27 11:40:59 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2011-06-27 11:40:59 +1200 |
commit | bbfc87e4d999d9b94c3e301d638d97f5b21a223b (patch) | |
tree | 8ba431d9f31d25e9681bde8f38b47671c801fbf5 /features/support | |
parent | d70e39c789af6604472fc1cb3203e095b96a716e (diff) | |
download | refinerycms-blog-bbfc87e4d999d9b94c3e301d638d97f5b21a223b.tar.gz refinerycms-blog-bbfc87e4d999d9b94c3e301d638d97f5b21a223b.tar.bz2 refinerycms-blog-bbfc87e4d999d9b94c3e301d638d97f5b21a223b.zip |
Fixed failing tag feature.
Diffstat (limited to 'features/support')
-rw-r--r-- | features/support/step_definitions/tags_steps.rb | 2 |
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 |