From bbfc87e4d999d9b94c3e301d638d97f5b21a223b Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Mon, 27 Jun 2011 11:40:59 +1200 Subject: Fixed failing tag feature. --- features/support/step_definitions/tags_steps.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'features/support/step_definitions') 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 -- cgit v1.2.3