diff options
| author | Robert | 2017-09-11 18:03:06 +0200 |
|---|---|---|
| committer | Robert | 2017-09-11 18:03:06 +0200 |
| commit | 37865fad65adacae41bff0677651ca0a4d9db974 (patch) | |
| tree | 0889ea9d7883bb27b493c16b9b08426fa22545a0 /spec/support/devise.rb | |
| parent | f7bc874de79ff9a68aa03523cf653407663e7c55 (diff) | |
| parent | 8fe9a39516f6fb71545d6329c448680d6f8c75d1 (diff) | |
| download | chouette-core-37865fad65adacae41bff0677651ca0a4d9db974.tar.bz2 | |
merged with master
Diffstat (limited to 'spec/support/devise.rb')
| -rw-r--r-- | spec/support/devise.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/devise.rb b/spec/support/devise.rb index 46249fef2..c9fd1b8e5 100644 --- a/spec/support/devise.rb +++ b/spec/support/devise.rb @@ -3,10 +3,10 @@ module DeviseRequestHelper def login_user organisation = Organisation.where(:code => "first").first_or_create(attributes_for(:organisation)) - @user ||= + @user ||= create(:user, :organisation => organisation, - :permissions => Support::Permissions.all_permissions) + :permissions => Support::Permissions.all_permissions) login_as @user, :scope => :user # post_via_redirect user_session_path, 'user[email]' => @user.email, 'user[password]' => @user.password |
