lib/rubocop/cop/rspec/describe_method.rb in rubocop-rspec-1.18.0 vs lib/rubocop/cop/rspec/describe_method.rb in rubocop-rspec-1.19.0
- old
+ new
@@ -27,10 +27,10 @@
def on_top_level_describe(_node, (_, second_arg))
return unless second_arg && second_arg.str_type?
return if METHOD_STRING_MATCHER =~ one(second_arg.children)
- add_offense(second_arg, :expression)
+ add_offense(second_arg, location: :expression)
end
end
end
end
end