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 saml spec

Oliver Günther313cc24e7c19
diff --git a/modules/auth_saml/spec/features/administration/saml_crud_spec.rb b/modules/auth_saml/spec/features/administration/saml_crud_spec.rb
index 0efcc2763a0..d1e62e0468d 100644
--- a/modules/auth_saml/spec/features/administration/saml_crud_spec.rb
+++ b/modules/auth_saml/spec/features/administration/saml_crud_spec.rb
@@ -99,7 +99,7 @@ RSpec.describe "SAML administration CRUD",
expect(provider.private_key.strip.gsub("\r\n", "\n")).to eq CertificateHelper.private_key.private_to_pem.strip
expect(provider.idp_sso_service_url).to eq "https://example.com/sso"
expect(provider.idp_slo_service_url).to eq "https://example.com/slo"
- expect(provider.mapping_login).to eq "login\r\nmail"
+ expect(provider.mapping_login.gsub("\r\n", "\n")).to eq "login\nmail"
expect(provider.mapping_mail).to eq "mail"
expect(provider.mapping_firstname).to eq "myName"
expect(provider.mapping_lastname).to eq "myLastName"