lib/rubocop/cop/rspec/cop.rb in rubocop-rspec-1.17.0 vs lib/rubocop/cop/rspec/cop.rb in rubocop-rspec-1.17.1
- old
+ new
@@ -3,13 +3,14 @@
WorkaroundCop = Cop.dup
# Clone of the the normal RuboCop::Cop::Cop class so we can rewrite
# the inherited method without breaking functionality
class WorkaroundCop
- # Remove the cop inherited method to be a noop. Our RSpec::Cop
+ # Remove the Cop.inherited method to be a noop. Our RSpec::Cop
# class will invoke the inherited hook instead
class << self
- remove_method :inherited
+ undef inherited
+ def inherited(*) end
end
# Special case `Module#<` so that the rspec support rubocop exports
# is compatible with our subclass
def self.<(other)