lib/rubocop/cop/rspec/not_to_not.rb in rubocop-rspec-1.6.0 vs lib/rubocop/cop/rspec/not_to_not.rb in rubocop-rspec-1.7.0

- old
+ new

@@ -1,10 +1,9 @@ module RuboCop module Cop module RSpec - # Enforces the usage of the same method on all negative message - # expectations. + # Checks for consistent method usage for negating expectations. # # @example # # bad # it '...' do # expect(false).to_not be_true @@ -13,10 +12,11 @@ # # good # it '...' do # expect(false).not_to be_true # end class NotToNot < Cop - include RuboCop::Cop::ConfigurableEnforcedStyle + include RuboCop::RSpec::SpecOnly, + RuboCop::Cop::ConfigurableEnforcedStyle MSG = 'Prefer `%s` over `%s`'.freeze METHOD_NAMES = [:not_to, :to_not].freeze