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
rename RSpec/Rails/HaveHttpStatus to RSpecRails/HaveHttpStatus in disable statements
Ivan Kuchin7790a84d97d2
diff --git a/spec/requests/api/v3/projects/copy/copy_resource_spec.rb b/spec/requests/api/v3/projects/copy/copy_resource_spec.rbindex 37ab48d5b10..c5b528a3bb1 100644--- a/spec/requests/api/v3/projects/copy/copy_resource_spec.rb+++ b/spec/requests/api/v3/projects/copy/copy_resource_spec.rb@@ -71,7 +71,7 @@ RSpec.describe "API::V3::Projects::Copy::CopyAPI", content_type: :json, with_goosubject(:response) { last_response }- # rubocop:disable RSpec/Rails/HaveHttpStatus+ # rubocop:disable RSpecRails/HaveHttpStatus# those are mock responses that don't deal well with the rails helpersdescribe "#POST /api/v3/projects/:id/copy" dodescribe "with empty params" do@@ -203,5 +203,5 @@ RSpec.describe "API::V3::Projects::Copy::CopyAPI", content_type: :json, with_gooendendend- # rubocop:enable RSpec/Rails/HaveHttpStatus+ # rubocop:enable RSpecRails/HaveHttpStatusenddiff --git a/spec/requests/api/v3/work_packages/update_resource_spec.rb b/spec/requests/api/v3/work_packages/update_resource_spec.rbindex 3d55cb6a288..084aeefc6d1 100644--- a/spec/requests/api/v3/work_packages/update_resource_spec.rb+++ b/spec/requests/api/v3/work_packages/update_resource_spec.rb@@ -269,7 +269,7 @@ RSpec.describe "API v3 Work package resource",include_context "patch request"- it { expect(response.status).to eq(200) } # rubocop:disable RSpec/Rails/HaveHttpStatus+ it { expect(response.status).to eq(200) } # rubocop:disable RSpecRails/HaveHttpStatusit "responds with updated finish date" doexpect(subject.body).to be_json_eql(duration.to_json).at_path("remainingTime")diff --git a/spec/requests/oauth_clients/callback_flow_spec.rb b/spec/requests/oauth_clients/callback_flow_spec.rbindex b184621a20b..b62d6ce5586 100644--- a/spec/requests/oauth_clients/callback_flow_spec.rb+++ b/spec/requests/oauth_clients/callback_flow_spec.rb@@ -79,7 +79,7 @@ RSpec.describe "OAuthClient callback endpoint" doset_cookie "oauth_state_asdf1234=#{state_cookie}"end- # rubocop:disable RSpec/Rails/HaveHttpStatus+ # rubocop:disable RSpecRails/HaveHttpStatusshared_examples "with errors and state param with cookie, not being admin" doit "redirects to URI referenced in the state param and held in a cookie" doexpect(response.status).to eq(302)@@ -185,6 +185,6 @@ RSpec.describe "OAuthClient callback endpoint" doit_behaves_like "fallback redirect"end- # rubocop:enable RSpec/Rails/HaveHttpStatus+ # rubocop:enable RSpecRails/HaveHttpStatusendend