Skip to content

Commit d3e5455

Browse files
authored
Merge pull request #25 from rubocop/fix-ambisious
Fix an error for Ambiguous cop name `RSpec/Rails/HttpStatus`
2 parents ecaf84c + b1a6396 commit d3e5455

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Master (Unreleased)
44

5+
- Fix an error for Ambiguous cop name `RSpec/Rails/HttpStatus`. ([@ydah])
6+
57
## 2.28.2 (2024-03-31)
68

79
- Fix a `NameError` by Cross-Referencing. ([@ydah])

lib/rubocop-rspec_rails.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# https://github.com/rubocop/rubocop-rspec_rails/issues/8
2222
module RuboCop
2323
module Cop
24-
class AmbiguousCopName # rubocop:disable Style/Documentation
24+
class Registry # rubocop:disable Style/Documentation
2525
prepend(Module.new do
2626
def qualified_cop_name(name, path, warn: true)
2727
return super unless name == 'RSpec/Rails/HttpStatus'

0 commit comments

Comments
 (0)