diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-07-27 22:32:26 +0300 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-07-27 22:32:26 +0300 |
commit | 164dc27a42876efdbd14db9e2d14311b4c119e52 (patch) | |
tree | 4a7e09dd7c8779942207d6eebe77c2c98e6029c2 /features | |
parent | ded42bc6916669f8025a10901484dc76dc26c4b2 (diff) | |
download | refinerycms-blog-164dc27a42876efdbd14db9e2d14311b4c119e52.tar.gz refinerycms-blog-164dc27a42876efdbd14db9e2d14311b4c119e52.tar.bz2 refinerycms-blog-164dc27a42876efdbd14db9e2d14311b4c119e52.zip |
Cucumber tag steps now pass.
Diffstat (limited to 'features')
-rw-r--r-- | features/support/step_definitions/tags_steps.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |