Move layout
setup for OAuth views to controllers (#35176)
This commit is contained in:
parent
392eaf1010
commit
8285194451
5 changed files with 10 additions and 2 deletions
|
@ -3,6 +3,8 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe OAuth::AuthorizationsController do
|
||||
render_views
|
||||
|
||||
let(:app) { Doorkeeper::Application.create!(name: 'test', redirect_uri: 'http://localhost/', scopes: 'read') }
|
||||
|
||||
describe 'GET #new' do
|
||||
|
@ -24,6 +26,8 @@ RSpec.describe OAuth::AuthorizationsController do
|
|||
.to have_http_status(200)
|
||||
expect(response.headers['Cache-Control'])
|
||||
.to include('private, no-store')
|
||||
expect(response.parsed_body.at('body.modal-layout'))
|
||||
.to be_present
|
||||
expect(controller.stored_location_for(:user))
|
||||
.to eq authorize_path_for(app)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue