aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/devise.rb
diff options
context:
space:
mode:
authorXinhui2016-08-03 16:07:22 +0200
committerXinhui2016-08-03 16:07:22 +0200
commitfa7154a9fe684f8b42bfc4afcacaa56bc1fe6d45 (patch)
treedb8dbbfe5e173efe864943f9c6a6ba295a8a919d /spec/support/devise.rb
parent042fe3d039bdd91325bd8098cedcadc025713df6 (diff)
downloadchouette-core-fa7154a9fe684f8b42bfc4afcacaa56bc1fe6d45.tar.bz2
Remove device :confirmable
Diffstat (limited to 'spec/support/devise.rb')
-rw-r--r--spec/support/devise.rb2
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