lib/rubocop/cop/rspec/not_to_not.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/not_to_not.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -20,9 +20,10 @@
include ConfigurableEnforcedStyle
MSG = 'Prefer `%<replacement>s` over `%<original>s`.'
RESTRICT_ON_SEND = %i[not_to to_not].freeze
+ # @!method not_to_not_offense(node)
def_node_matcher :not_to_not_offense, '(send _ % ...)'
def on_send(node)
not_to_not_offense(node, alternative_style) do
add_offense(node.loc.selector) do |corrector|