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
Adapt specs
Oliver Günther39f59ae6b6b9
diff --git a/spec/controllers/shared_upsell_examples.rb b/spec/controllers/shared_upsell_examples.rbindex 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" doexpect(subject).to be_successfulexpect(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- endenddiff --git a/spec/requests/auth/oauth_login_csp_spec.rb b/spec/requests/auth/oauth_login_csp_spec.rbindex 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_pathcsp = 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_pathcsp = response.headers["Content-Security-Policy"]- expect(csp).to include "form-action 'self' myscheme:"+ expect(csp).to match %r{form-action 'self' .+? myscheme:}endendend