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:
@@ -544,6 +544,9 @@ RSpec/NotToNot:
|
||||
RSpec/OverwritingSetup:
|
||||
Enabled: true
|
||||
|
||||
RSpec/Rails/HaveHttpStatus:
|
||||
Enabled: true
|
||||
|
||||
RSpec/RepeatedExample:
|
||||
Enabled: true
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user