lib/rubocop/cop/rspec/multiple_describes.rb in rubocop-rspec-1.18.0 vs lib/rubocop/cop/rspec/multiple_describes.rb in rubocop-rspec-1.19.0
- old
+ new
@@ -30,10 +30,10 @@
def on_top_level_describe(node, _args)
return if single_top_level_describe?
return unless top_level_nodes.first.equal?(node)
- add_offense(node, :expression)
+ add_offense(node, location: :expression)
end
end
end
end
end