aboutsummaryrefslogtreecommitdiffstats
path: root/features
diff options
context:
space:
mode:
Diffstat (limited to 'features')
-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