lib/rubocop/cop/rspec/not_to_not.rb in rubocop-rspec-2.1.0 vs lib/rubocop/cop/rspec/not_to_not.rb in rubocop-rspec-2.2.0
- old
+ new
@@ -18,9 +18,10 @@
class NotToNot < Base
extend AutoCorrector
include ConfigurableEnforcedStyle
MSG = 'Prefer `%<replacement>s` over `%<original>s`.'
+ RESTRICT_ON_SEND = %i[not_to to_not].freeze
def_node_matcher :not_to_not_offense, '(send _ % ...)'
def on_send(node)
not_to_not_offense(node, alternative_style) do