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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Re-enable custom attribute mapping spec
Oliver Günther65fb08027036
diff --git a/modules/openid_connect/spec/requests/openid_connect_spec.rb b/modules/openid_connect/spec/requests/openid_connect_spec.rbindex 30f50c3ad04..88a9fc4bdd0 100644--- a/modules/openid_connect/spec/requests/openid_connect_spec.rb+++ b/modules/openid_connect/spec/requests/openid_connect_spec.rb@@ -67,10 +67,7 @@ RSpec.describe "OpenID Connect", :skip_2fa_stage, # Prevent redirects to 2FA stadescribe "sign-up and login" dolet(:limit_self_registration) { false }-- before do- create(:oidc_provider, slug: "keycloak", limit_self_registration:)- end+ let!(:provider) { create(:oidc_provider, slug: "keycloak", limit_self_registration:) }it "logs in the user" do##@@ -143,12 +140,7 @@ RSpec.describe "OpenID Connect", :skip_2fa_stage, # Prevent redirects to 2FA stalet(:limit_self_registration) { true }it "does not allow registration" do- ##- # it should redirect to the provider's openid connect authentication endpointclick_on_signin("keycloak")-- ##- # it should redirect back from the provider to the login pageredirect_from_provider("keycloak")expect(response).to have_http_status :found@@ -157,7 +149,7 @@ RSpec.describe "OpenID Connect", :skip_2fa_stage, # Prevent redirects to 2FA stauser = User.find_by(mail: user_info[:email])expect(user).to be_registered- expect(user).not_to be active+ expect(user).not_to be_activeendend@@ -199,9 +191,8 @@ RSpec.describe "OpenID Connect", :skip_2fa_stage, # Prevent redirects to 2FA staendit "maps to the login" do- skip "Mapping is not supported yet"- click_on_signin- redirect_from_provider+ click_on_signin("keycloak")+ redirect_from_provider("keycloak")user = User.find_by(login: "a.truly.random.value")expect(user).to be_present