Skip to content

Commit

Permalink
Fix an error for Ambiguous cop name RSpec/Rails/HttpStatus
Browse files Browse the repository at this point in the history
Fix: #18
This PR fixes an error for Ambiguous cop name `RSpec/Rails/HttpStatus` in the `rubocop-rspec_rails` gem.
  • Loading branch information
ydah committed Apr 11, 2024
1 parent ecaf84c commit b1a6396
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Master (Unreleased)

- Fix an error for Ambiguous cop name `RSpec/Rails/HttpStatus`. ([@ydah])

## 2.28.2 (2024-03-31)

- Fix a `NameError` by Cross-Referencing. ([@ydah])
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop-rspec_rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# https://github.com/rubocop/rubocop-rspec_rails/issues/8
module RuboCop
module Cop
class AmbiguousCopName # rubocop:disable Style/Documentation
class Registry # rubocop:disable Style/Documentation
prepend(Module.new do
def qualified_cop_name(name, path, warn: true)
return super unless name == 'RSpec/Rails/HttpStatus'
Expand Down

0 comments on commit b1a6396

Please sign in to comment.