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

fix spec

Markus Kahl16cfffc77458
diff --git a/spec/requests/openid_google_provider_callback_spec.rb b/spec/requests/openid_google_provider_callback_spec.rb
index 2927db78520..0f161914a77 100644
--- a/spec/requests/openid_google_provider_callback_spec.rb
+++ b/spec/requests/openid_google_provider_callback_spec.rb
@@ -51,6 +51,12 @@ describe 'OpenID Google provider callback' do
end
before do
+ # enable self registration for Google which is limited by default
+ expect(OpenProject::Plugins::AuthPlugin)
+ .to receive(:limit_self_registration?)
+ .with(provider: "google")
+ .and_return false
+
with_enterprise_token :openid_providers
stub_request(:post, "https://accounts.google.com/o/oauth2/token").to_return(