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