diff options
| author | Xinhui Xu | 2017-09-12 15:52:49 +0200 |
|---|---|---|
| committer | GitHub | 2017-09-12 15:52:49 +0200 |
| commit | 095dd5151d40d25c9abb015808834b32e575c750 (patch) | |
| tree | 3aacd609bfbd277a5e33e8ee2208a3293f85a3ba /spec/support/devise.rb | |
| parent | e2270acdfcec57a8be2ada201a668d9d610953ab (diff) | |
| parent | 4aa19d931f8585c061dd3da49e31b2ddbbb1bf6b (diff) | |
| download | chouette-core-095dd5151d40d25c9abb015808834b32e575c750.tar.bz2 | |
Merge branch 'master' into compliance_control
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 |
