spec/rubocop/cop/rspec/cop_spec.rb in rubocop-rspec-1.24.0 vs spec/rubocop/cop/rspec/cop_spec.rb in rubocop-rspec-1.25.0
- old
+ new
@@ -21,13 +21,9 @@
let(:fake_cop) do
stub_const('RuboCop::RSpec', Module.new)
# rubocop:disable ClassAndModuleChildren
class RuboCop::RSpec::FakeCop < described_class
- def self.name
- 'RuboCop::RSpec::FakeCop'
- end
-
def on_send(node)
add_offense(node, location: :expression, message: 'I flag everything')
end
end
# rubocop:enable ClassAndModuleChildren