Correct bug in maintenance_spec.tb

This commit is contained in:
Eric Schultz 2019-01-28 15:33:41 -06:00 committed by Luis Castro
parent 438ecf16c8
commit 964aadbfb1
No known key found for this signature in database
GPG key ID: 0A8F33D4C4E27639
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
class Users::SessionsController < Devise::SessionsController class Users::SessionsController < Devise::SessionsController
layout 'layouts/apified', only: :new layout 'layouts/apified', only: :new
respond_to :json, only: :new
def new def new
@theme = 'minimal' @theme = 'minimal'

View file

@ -85,7 +85,7 @@ describe 'Maintenance Mode' do
it 'allows sign_in.json' do it 'allows sign_in.json' do
get(:new, {maintenance_token: "#{token}", format: 'json'}) get(:new, {maintenance_token: "#{token}", format: 'json'})
expect(response.code).to eq '406' expect(response.code).to eq '200'
end end
end end
end end