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

Chore: Use RSpec HTTP status matchers

Aaron Contrerase934b204311b
diff --git a/spec/controllers/account_controller_spec.rb b/spec/controllers/account_controller_spec.rb
index e24d3344897..26e12b5d1c6 100644
--- a/spec/controllers/account_controller_spec.rb
+++ b/spec/controllers/account_controller_spec.rb
@@ -430,7 +430,7 @@ RSpec.describe AccountController,
end
it 'is not found' do
- expect(response.status).to eq 404
+ expect(response).to have_http_status :not_found
end
end
@@ -519,7 +519,7 @@ RSpec.describe AccountController,
end
it 'renders 404' do
- expect(response.status).to eq 404
+ expect(response).to have_http_status :not_found
end
end
@@ -559,7 +559,7 @@ RSpec.describe AccountController,
end
it 'is not found' do
- expect(response.status).to eq 404
+ expect(response).to have_http_status :not_found
end
end
end
@@ -916,7 +916,7 @@ RSpec.describe AccountController,
end
it 'is not found' do
- expect(response.status).to eq 404
+ expect(response).to have_http_status :not_found
end
end