aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2011-07-27 21:25:56 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2011-07-27 21:25:56 +0300
commitded42bc6916669f8025a10901484dc76dc26c4b2 (patch)
treed30119ed09dead8b9fe4a749c966479de86f7659
parentb5646a35c9acbe188fc4cc25a8eca9e7eb465250 (diff)
downloadrefinerycms-blog-ded42bc6916669f8025a10901484dc76dc26c4b2.tar.gz
refinerycms-blog-ded42bc6916669f8025a10901484dc76dc26c4b2.tar.bz2
refinerycms-blog-ded42bc6916669f8025a10901484dc76dc26c4b2.zip
Cucumber category steps now pass.
-rw-r--r--features/support/step_definitions/category_steps.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/features/support/step_definitions/category_steps.rb b/features/support/step_definitions/category_steps.rb
index 891b5c0..3c197e2 100644
--- a/features/support/step_definitions/category_steps.rb
+++ b/features/support/step_definitions/category_steps.rb
@@ -3,9 +3,9 @@ Given /^there is a category titled "([^"]*)"$/ do |title|
end
Then /^the blog post should have ([\d]*) categor[yies]{1,3}$/ do |num_category|
- BlogPost.last.categories.count.should == num_category.to_i
+ ::Refinery::BlogPost.last.categories.count.should == num_category.to_i
end
Then /^the blog post should have the category "([^"]*)"$/ do |category|
- BlogPost.last.categories.first.title.should == category
-end \ No newline at end of file
+ ::Refinery::BlogPost.last.categories.first.title.should == category
+end