From 164dc27a42876efdbd14db9e2d14311b4c119e52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Wed, 27 Jul 2011 22:32:26 +0300 Subject: Cucumber tag steps now pass. --- features/support/step_definitions/tags_steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'features') diff --git a/features/support/step_definitions/tags_steps.rb b/features/support/step_definitions/tags_steps.rb index 8280474..d16f758 100644 --- a/features/support/step_definitions/tags_steps.rb +++ b/features/support/step_definitions/tags_steps.rb @@ -4,10 +4,10 @@ end When /^I visit the tagged posts page for "([^"]*)"$/ do |tag_name| @blog_post ||= Factory.create(:blog_post, :tag_list => tag_name) - tag = BlogPost.tag_counts_on(:tags).first + tag = ::Refinery::BlogPost.tag_counts_on(:tags).first visit tagged_posts_path(tag.id, tag_name.parameterize) end Then /^the blog post should have the tags "([^"]*)"$/ do |tag_list| - BlogPost.last.tag_list == tag_list.split(', ') + ::Refinery::BlogPost.last.tag_list == tag_list.split(', ') end -- cgit v1.2.3