Correct bug in maintenance_spec.tb
This commit is contained in:
parent
438ecf16c8
commit
964aadbfb1
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class Users::SessionsController < Devise::SessionsController
|
||||
layout 'layouts/apified', only: :new
|
||||
|
||||
respond_to :json, only: :new
|
||||
|
||||
def new
|
||||
@theme = 'minimal'
|
||||
|
|
|
@ -85,7 +85,7 @@ describe 'Maintenance Mode' do
|
|||
|
||||
it 'allows sign_in.json' do
|
||||
get(:new, {maintenance_token: "#{token}", format: 'json'})
|
||||
expect(response.code).to eq '406'
|
||||
expect(response.code).to eq '200'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue