check the correct key in openid connect spec

pull/11544/head
bsatarnejad 2 years ago committed by Oliver Günther
parent c781d2a9b4
commit 53e37e487f
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 4
      modules/openid_connect/spec/requests/openid_connect_spec.rb

@ -48,7 +48,7 @@ describe 'OpenID Connect',
end
before do
allow(EnterpriseToken).to receive(:openid_providers?).and_return(false)
allow(EnterpriseToken).to receive(:show_banners?).and_return(false)
# The redirect will include an authorisation code.
# Since we don't actually get a valid code in the test we will stub the resulting AccessToken.
@ -149,7 +149,7 @@ describe 'OpenID Connect',
end
it 'will show no option unless EE' do
allow(EnterpriseToken).to receive(:openid_providers?).and_return(true)
allow(EnterpriseToken).to receive(:show_banners?).and_return(true)
get '/login'
expect(response.body).not_to match /Google/i
expect(response.body).not_to match /Azure/i

Loading…
Cancel
Save