features/step_definitions/engine/clearance_steps.rb in clearance-0.16.1 vs features/step_definitions/engine/clearance_steps.rb in clearance-0.16.2

- old
+ new

@@ -1,7 +1,9 @@ # Existing users +require 'factory_girl_rails' + Given /^(?:I am|I have|I) signed up (?:as|with) "(.*)"$/ do |email| FactoryGirl.create(:user, :email => email) end Given /^a user "([^"]*)" exists without a salt, remember token, or password$/ do |email| @@ -22,10 +24,10 @@ end # Sign in Given /^I sign in$/ do - email = Factory.next(:email) + email = FactoryGirl.generate(:email) steps %{ I have signed up with "#{email}" I sign in with "#{email}" } end