lib/rubocop/cop/rspec/not_to_not.rb in rubocop-rspec-1.26.0 vs lib/rubocop/cop/rspec/not_to_not.rb in rubocop-rspec-1.27.0
- old
+ new
@@ -20,10 +20,10 @@
def_node_matcher :not_to_not_offense, '(send _ % ...)'
def on_send(node)
not_to_not_offense(node, alternative_style) do
- add_offense(node, location: :expression)
+ add_offense(node, location: :selector)
end
end
def autocorrect(node)
->(corrector) { corrector.replace(node.loc.selector, style.to_s) }