lib/rubocop/cop/rspec/describe_method.rb in rubocop-rspec-1.33.0 vs lib/rubocop/cop/rspec/describe_method.rb in rubocop-rspec-1.34.0
- old
+ new
@@ -25,10 +25,10 @@
def on_top_level_describe(_node, (_, second_arg))
return unless second_arg&.str_type?
return if second_arg.str_content.start_with?('#', '.')
- add_offense(second_arg, location: :expression)
+ add_offense(second_arg)
end
end
end
end
end