Fixed failing tag feature.
This commit is contained in:
parent
d70e39c789
commit
bbfc87e4d9
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue