Skip to content

Commit

Permalink
Ensure rubocop can parse rules
Browse files Browse the repository at this point in the history
```
Error: Ambiguous cop name `RSpec/Rails/HttpStatus` used in
/Users/krobayna/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/gc_ruboconfig-4.4.1/rails.yml
needs department qualifier. Did you mean Rails/HttpStatus or
RSpecRails/HttpStatus?
```

The rule was updated
https://docs.rubocop.org/rubocop-rspec_rails/cops_rspecrails.html#rspecrailshttpstatus
  • Loading branch information
kevinrobayna committed Apr 10, 2024
1 parent e9b92de commit 85088de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ RSpec/Rails/HaveHttpStatus: # new in 2.12
RSpec/Rails/AvoidSetupHook:
Enabled: true

RSpec/Rails/HttpStatus:
RSpecRails/HttpStatus:
EnforcedStyle: numeric

RSpec/Rails/InferredSpecType: # new in 2.14
Expand Down

0 comments on commit 85088de

Please sign in to comment.