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

Adapt specs

Oliver Günther39f59ae6b6b9
diff --git a/spec/controllers/shared_upsell_examples.rb b/spec/controllers/shared_upsell_examples.rb
index 22b2ec34db9..d5edc595381 100644
--- a/spec/controllers/shared_upsell_examples.rb
+++ b/spec/controllers/shared_upsell_examples.rb
@@ -37,12 +37,4 @@ RSpec.shared_examples_for "it has an upsell action" do
expect(subject).to be_successful
expect(subject).to render_template "upsell"
end
-
- it "writes the augur URL and token version to gon" do
- subject
- gon = controller.gon
-
- expect(gon.augur_url).to eq OpenProject::Configuration.enterprise_trial_creation_host
- expect(gon.token_version).to eq OpenProject::Token::VERSION
- end
end
diff --git a/spec/requests/auth/oauth_login_csp_spec.rb b/spec/requests/auth/oauth_login_csp_spec.rb
index 84d94eed474..25018e6ace7 100644
--- a/spec/requests/auth/oauth_login_csp_spec.rb
+++ b/spec/requests/auth/oauth_login_csp_spec.rb
@@ -41,7 +41,7 @@ RSpec.describe "CSP appends on login form from oauth",
get oauth_path
csp = response.headers["Content-Security-Policy"]
- expect(csp).to include "form-action 'self' https://foobar.com/;"
+ expect(csp).to match %r{form-action 'self' .+? https://foobar.com}
location = response.headers["Location"]
expect(location).to include("/login?back_url=#{CGI.escape(oauth_path)}")
@@ -55,7 +55,7 @@ RSpec.describe "CSP appends on login form from oauth",
get oauth_path
csp = response.headers["Content-Security-Policy"]
- expect(csp).to include "form-action 'self' myscheme:"
+ expect(csp).to match %r{form-action 'self' .+? myscheme:}
end
end
end