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
fix failing tests in custom styles controller spec
Behrokh Satarnejadc7702d3a1559
diff --git a/spec/controllers/custom_styles_controller_spec.rb b/spec/controllers/custom_styles_controller_spec.rbindex 2eef162d338..94fcaaee45a 100644--- a/spec/controllers/custom_styles_controller_spec.rb+++ b/spec/controllers/custom_styles_controller_spec.rb@@ -85,7 +85,8 @@ RSpec.describe CustomStylesController dolet(:valid) { true }it "redirects to show" do- expect(response).to redirect_to action: :show+ expect(response).to be_redirect+ expect(response).to have_http_status(:found)endend@@ -119,7 +120,8 @@ RSpec.describe CustomStylesController dolet(:valid) { true }it "redirects to show" do- expect(response).to redirect_to action: :show+ expect(response).to be_redirect+ expect(response).to have_http_status(:found)endend@@ -145,7 +147,8 @@ RSpec.describe CustomStylesController dolet(:valid) { true }it "redirects to show" do- expect(response).to redirect_to action: :show+ expect(response).to be_redirect+ expect(response).to have_http_status(:found)endend@@ -205,7 +208,8 @@ RSpec.describe CustomStylesController doendit "removes the logo from custom_style" do- expect(response).to redirect_to action: :show+ expect(response).to be_redirect+ expect(response).to have_http_status(:found)endend@@ -266,7 +270,8 @@ RSpec.describe CustomStylesController doendit "removes the export logo from custom_style" do- expect(response).to redirect_to action: :show+ expect(response).to be_redirect+ expect(response).to have_http_status(:found)endend@@ -326,7 +331,8 @@ RSpec.describe CustomStylesController doendit "removes the export cover from custom_style" do- expect(response).to redirect_to action: :show+ expect(response).to be_redirect+ expect(response).to have_http_status(:found)endend@@ -387,7 +393,8 @@ RSpec.describe CustomStylesController doendit "removes the favicon from custom_style" do- expect(response).to redirect_to action: :show+ expect(response).to be_redirect+ expect(response).to have_http_status(:found)endend@@ -448,7 +455,8 @@ RSpec.describe CustomStylesController doendit "removes the touch icon from custom_style" do- expect(response).to redirect_to action: :show+ expect(response).to be_redirect+ expect(response).to have_http_status(:found)endend@@ -484,7 +492,8 @@ RSpec.describe CustomStylesController doit "saves the color" doexpect(custom_style.export_cover_text_color).to eq("#990000")- expect(response).to redirect_to action: :show+ expect(response).to be_redirect+ expect(response).to have_http_status(:found)endend@@ -501,7 +510,8 @@ RSpec.describe CustomStylesController doit "removes the color" doexpect(custom_style.export_cover_text_color).to be_nil- expect(response).to redirect_to action: :show+ expect(response).to be_redirect+ expect(response).to have_http_status(:found)endend@@ -516,7 +526,8 @@ RSpec.describe CustomStylesController doit "ignores the parameter" doexpect(custom_style.export_cover_text_color).to be_nil- expect(response).to redirect_to action: :show+ expect(response).to be_redirect+ expect(response).to have_http_status(:found)endendend@@ -528,7 +539,8 @@ RSpec.describe CustomStylesController doendit "is created" do- expect(response).to redirect_to action: :show+ expect(response).to be_redirect+ expect(response).to have_http_status(:found)endendend