lib/rubocop/cop/rspec/not_to_not.rb in rubocop-rspec-1.32.0 vs lib/rubocop/cop/rspec/not_to_not.rb in rubocop-rspec-1.33.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module RuboCop
module Cop
module RSpec
# Checks for consistent method usage for negating expectations.
#
@@ -14,10 +16,10 @@
# expect(false).not_to be_true
# end
class NotToNot < Cop
include ConfigurableEnforcedStyle
- MSG = 'Prefer `%<replacement>s` over `%<original>s`.'.freeze
+ MSG = 'Prefer `%<replacement>s` over `%<original>s`.'
def_node_matcher :not_to_not_offense, '(send _ % ...)'
def on_send(node)
not_to_not_offense(node, alternative_style) do