From b5646a35c9acbe188fc4cc25a8eca9e7eb465250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Wed, 27 Jul 2011 21:22:19 +0300 Subject: Cucumber author steps now pass. --- features/support/step_definitions/authors_steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'features') diff --git a/features/support/step_definitions/authors_steps.rb b/features/support/step_definitions/authors_steps.rb index d78ca90..eaa5f32 100644 --- a/features/support/step_definitions/authors_steps.rb +++ b/features/support/step_definitions/authors_steps.rb @@ -1,7 +1,7 @@ Then /^there should be (\d+) blog posts?$/ do |num| - BlogPost.all.size == num + ::Refinery::BlogPost.all.size == num end Then /^the blog post should belong to me$/ do - BlogPost.first.author.login == User.last.login + ::Refinery::BlogPost.first.author.login == ::Refinery::User.last.login end \ No newline at end of file -- cgit v1.2.3