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

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.rb
index 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_goo
subject(:response) { last_response }
- # rubocop:disable RSpec/Rails/HaveHttpStatus
+ # rubocop:disable RSpecRails/HaveHttpStatus
# those are mock responses that don't deal well with the rails helpers
describe "#POST /api/v3/projects/:id/copy" do
describe "with empty params" do
@@ -203,5 +203,5 @@ RSpec.describe "API::V3::Projects::Copy::CopyAPI", content_type: :json, with_goo
end
end
end
- # rubocop:enable RSpec/Rails/HaveHttpStatus
+ # rubocop:enable RSpecRails/HaveHttpStatus
end
diff --git a/spec/requests/api/v3/work_packages/update_resource_spec.rb b/spec/requests/api/v3/work_packages/update_resource_spec.rb
index 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/HaveHttpStatus
it "responds with updated finish date" do
expect(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.rb
index 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" do
set_cookie "oauth_state_asdf1234=#{state_cookie}"
end
- # rubocop:disable RSpec/Rails/HaveHttpStatus
+ # rubocop:disable RSpecRails/HaveHttpStatus
shared_examples "with errors and state param with cookie, not being admin" do
it "redirects to URI referenced in the state param and held in a cookie" do
expect(response.status).to eq(302)
@@ -185,6 +185,6 @@ RSpec.describe "OAuthClient callback endpoint" do
it_behaves_like "fallback redirect"
end
- # rubocop:enable RSpec/Rails/HaveHttpStatus
+ # rubocop:enable RSpecRails/HaveHttpStatus
end
end