From ded42bc6916669f8025a10901484dc76dc26c4b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Wed, 27 Jul 2011 21:25:56 +0300 Subject: Cucumber category steps now pass. --- features/support/step_definitions/category_steps.rb | 6 +++--- 1 file 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 -- cgit v1.2.3