diff options
Diffstat (limited to 'spec/support/devise.rb')
| -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 | 
