Skip to content

Commit

Permalink
[Wip] Fix an error for unrecognized cop or department `RSpecRails/Htt…
Browse files Browse the repository at this point in the history
…pStatus` when also using rubocop-rails
  • Loading branch information
ydah committed Mar 30, 2024
1 parent ccd821e commit 4d3a6cb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,13 @@ module SpecHelper

require 'rubocop-rspec'
require 'rubocop-rspec_rails'

RuboCop::Cop::AmbiguousCopName.singleton_class.prepend(
Module.new do
def qualified_cop_name(name, path, warn: true)
return if name == 'RSpec/Rails/HttpStatus'

super
end
end
)

0 comments on commit 4d3a6cb

Please sign in to comment.