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:
|
RSpec/OverwritingSetup:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
RSpec/Rails/HaveHttpStatus:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
RSpec/RepeatedExample:
|
RSpec/RepeatedExample:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ describe Admin::Api::StatsController, :admin do
|
|||||||
get :show
|
get :show
|
||||||
|
|
||||||
expect(response).not_to be_ok
|
expect(response).not_to be_ok
|
||||||
expect(response.status).to eq 400
|
expect(response).to have_http_status 400
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user