Update factory girl to last version

This commit is contained in:
Thibault Jouan
2014-04-01 05:04:27 +00:00
parent d2b332215e
commit eda2f3fbee
28 changed files with 56 additions and 56 deletions

View File

@@ -1,5 +1,5 @@
module UserControllerHelpers
def sign_in
controller.current_user = Factory.create(:user)
controller.current_user = FactoryGirl.create(:user)
end
end

View File

@@ -1,6 +1,6 @@
module UserIntegrationHelpers
def sign_in
user = Factory.create(:user)
user = FactoryGirl.create(:user)
visit new_session_path
fill_in 'Email', :with => user.email
fill_in 'Password', :with => user.password
@@ -8,7 +8,7 @@ module UserIntegrationHelpers
end
def api_sign_in
user = Factory.create :user
user = FactoryGirl.create :user
post api_sessions_path, :format => :json, :session => {
:email => user.email,