diff options
| author | Xinhui | 2016-08-03 16:07:22 +0200 |
|---|---|---|
| committer | Xinhui | 2016-08-03 16:07:22 +0200 |
| commit | fa7154a9fe684f8b42bfc4afcacaa56bc1fe6d45 (patch) | |
| tree | db8dbbfe5e173efe864943f9c6a6ba295a8a919d /spec/support | |
| parent | 042fe3d039bdd91325bd8098cedcadc025713df6 (diff) | |
| download | chouette-core-fa7154a9fe684f8b42bfc4afcacaa56bc1fe6d45.tar.bz2 | |
Remove device :confirmable
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/devise.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/spec/support/devise.rb b/spec/support/devise.rb index cd5782f36..d33812e6f 100644 --- a/spec/support/devise.rb +++ b/spec/support/devise.rb @@ -4,7 +4,6 @@ module DeviseRequestHelper def login_user organisation = Organisation.where(:name => "first").first_or_create(attributes_for(:organisation)) @user ||= create(:user, :organisation => organisation) - @user.confirm! login_as @user, :scope => :user # post_via_redirect user_session_path, 'user[email]' => @user.email, 'user[password]' => @user.password end @@ -36,7 +35,6 @@ module DeviseControllerHelper @request.env["devise.mapping"] = Devise.mappings[:user] organisation = Organisation.where(:name => "first").first_or_create(attributes_for(:organisation)) user = create(:user, :organisation => organisation) - user.confirm! sign_in user end end |
