From 518ee00e0c5d7c8a18e1c58dc00f58d6974d9f06 Mon Sep 17 00:00:00 2001 From: Joe Sak Date: Thu, 24 Feb 2011 22:12:20 -0600 Subject: WIP- just stuck on the uninitialized Constant weirdness --- features/support/step_definitions/authors_steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'features/support') diff --git a/features/support/step_definitions/authors_steps.rb b/features/support/step_definitions/authors_steps.rb index 6f695ca..7dd30ac 100644 --- a/features/support/step_definitions/authors_steps.rb +++ b/features/support/step_definitions/authors_steps.rb @@ -1,5 +1,5 @@ Given /^there is a user named "([^\"]*)"$/ do |login| - @user = Factory.create(:user, :login => login, :password => "#{login}-123", :password_confirmation => "#{login}-123") + @user = Factory.create(:user, :login => login) end Then /^there should be (\d+) blog posts?$/ do |num| @@ -7,5 +7,5 @@ Then /^there should be (\d+) blog posts?$/ do |num| end Then /^the blog post should belong to "([^\"]*)"$/ do |login| - BlogPost.last.author.login == login + BlogPost.first.author.login == login end \ No newline at end of file -- cgit v1.2.3