spec/rubocop/cop/rspec/cop_spec.rb in rubocop-rspec-1.18.0 vs spec/rubocop/cop/rspec/cop_spec.rb in rubocop-rspec-1.19.0
- old
+ new
@@ -26,10 +26,10 @@
def self.name
'RuboCop::RSpec::FakeCop'
end
def on_send(node)
- add_offense(node, :expression, 'I flag everything')
+ add_offense(node, location: :expression, message: 'I flag everything')
end
end
RuboCop::RSpec::FakeCop
end