mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
Add spec test for authComplete param carry-forward
This commit is contained in:
parent
15aa712227
commit
62edf3c401
17
spec/requests/application_controller_spec.rb
Normal file
17
spec/requests/application_controller_spec.rb
Normal file
@ -0,0 +1,17 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe ApplicationController do
|
||||
describe '#redirect_to_login_if_required' do
|
||||
let(:admin) { Fabricate(:admin) }
|
||||
|
||||
before do
|
||||
admin # to skip welcome wizard at home page `/`
|
||||
SiteSetting.login_required = true
|
||||
end
|
||||
|
||||
it "should carry-forward authComplete param to login page redirect" do
|
||||
get "/?authComplete=true"
|
||||
expect(response).to redirect_to('/login?authComplete=true')
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user