lib/rubocop/cop/rspec/example_length.rb in rubocop-rspec-1.18.0 vs lib/rubocop/cop/rspec/example_length.rb in rubocop-rspec-1.19.0
- old
+ new
@@ -35,10 +35,10 @@
length = code_length(node)
return unless length > max_length
- add_offense(node, :expression, message(length))
+ add_offense(node, location: :expression, message: message(length))
end
private
def code_length(node)