lib/rubocop/cop/rspec/cop.rb in rubocop-rspec-1.15.1 vs lib/rubocop/cop/rspec/cop.rb in rubocop-rspec-1.16.0

- old
+ new

@@ -3,12 +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 - # Overwrite 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 - def self.inherited(*); end + class << self + remove_method :inherited + end # Special case `Module#<` so that the rspec support rubocop exports # is compatible with our subclass def self.<(other) other.equal?(RuboCop::Cop::Cop) || super