lib/rubocop/cop/rspec/not_to_not.rb in rubocop-rspec-1.20.1 vs lib/rubocop/cop/rspec/not_to_not.rb in rubocop-rspec-1.21.0

- old
+ new

@@ -14,11 +14,11 @@ # expect(false).not_to be_true # end class NotToNot < Cop include ConfigurableEnforcedStyle - MSG = 'Prefer `%s` over `%s`.'.freeze + MSG = 'Prefer `%<replacement>s` over `%<original>s`.'.freeze def_node_matcher :not_to_not_offense, '(send _ % ...)' def on_send(node) not_to_not_offense(node, alternative_style) do @@ -31,10 +31,10 @@ end private def message(_node) - format(MSG, style, alternative_style) + format(MSG, replacement: style, original: alternative_style) end end end end end