From 964aadbfb17582a1f0b862ade81e30f59ef5b9f6 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Mon, 28 Jan 2019 15:33:41 -0600 Subject: [PATCH] Correct bug in maintenance_spec.tb --- app/controllers/users/sessions_controller.rb | 2 +- spec/requests/maintenance_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/users/sessions_controller.rb b/app/controllers/users/sessions_controller.rb index d9a4ad10..4ffebf7e 100644 --- a/app/controllers/users/sessions_controller.rb +++ b/app/controllers/users/sessions_controller.rb @@ -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' diff --git a/spec/requests/maintenance_spec.rb b/spec/requests/maintenance_spec.rb index 407558bc..0a79ef56 100644 --- a/spec/requests/maintenance_spec.rb +++ b/spec/requests/maintenance_spec.rb @@ -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