lib/rubocop/cop/rspec/verbose_include_metadata.rb in gitlab-styles-10.0.0 vs lib/rubocop/cop/rspec/verbose_include_metadata.rb in gitlab-styles-10.1.0
- old
+ new
@@ -40,10 +40,10 @@
def on_send(node)
invalid_metadata_matches(node) do |match|
add_offense(node, message: format(MSG, good(match), bad(match))) do |corrector|
invalid_metadata_matches(node) do |match|
- corrector.replace(match.loc.expression, good(match))
+ corrector.replace(match, good(match))
end
end
end
end