Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

check the correct key in openid connect spec

bsatarnejad53e37e487fc0
diff --git a/modules/openid_connect/spec/requests/openid_connect_spec.rb b/modules/openid_connect/spec/requests/openid_connect_spec.rb
index ccd21ba987e..e206e0b799e 100644
--- a/modules/openid_connect/spec/requests/openid_connect_spec.rb
+++ b/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