|
|
@ -55,6 +55,7 @@ RSpec.describe Auth::SessionsController, type: :controller do
|
|
|
|
request.env['devise.mapping'] = Devise.mappings[:user]
|
|
|
|
request.env['devise.mapping'] = Devise.mappings[:user]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ENV['PAM_ENABLED'] == 'true'
|
|
|
|
context 'using PAM authentication' do
|
|
|
|
context 'using PAM authentication' do
|
|
|
|
context 'using a valid password' do
|
|
|
|
context 'using a valid password' do
|
|
|
|
before do
|
|
|
|
before do
|
|
|
@ -105,6 +106,7 @@ RSpec.describe Auth::SessionsController, type: :controller do
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
context 'using password authentication' do
|
|
|
|
context 'using password authentication' do
|
|
|
|
let(:user) { Fabricate(:user, email: 'foo@bar.com', password: 'abcdefgh') }
|
|
|
|
let(:user) { Fabricate(:user, email: 'foo@bar.com', password: 'abcdefgh') }
|
|
|
|