features/step_definitions/engine/clearance_steps.rb in clearance-0.16.0 vs features/step_definitions/engine/clearance_steps.rb in clearance-0.16.1
- old
+ new
@@ -1,12 +1,12 @@
# Existing users
Given /^(?:I am|I have|I) signed up (?:as|with) "(.*)"$/ do |email|
- Factory(:user, :email => email)
+ FactoryGirl.create(:user, :email => email)
end
Given /^a user "([^"]*)" exists without a salt, remember token, or password$/ do |email|
- user = Factory(:user, :email => email)
+ user = FactoryGirl.create(:user, :email => email)
sql = "update users set salt = NULL, encrypted_password = NULL, remember_token = NULL where id = #{user.id}"
ActiveRecord::Base.connection.update(sql)
end
# Sign up