Add and apply HaveHttpStatus rubocop rule

This rule was added in rubocop-rspec 2.12.0. We were already applying it
most of the time.
This commit is contained in:
Javi Martín
2023-08-29 19:44:47 +02:00
parent f52a86b465
commit c4e32ea528
2 changed files with 4 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ describe Admin::Api::StatsController, :admin do
get :show
expect(response).not_to be_ok
expect(response.status).to eq 400
expect(response).to have_http_status 400
end
end