lib/rubocop/cop/rspec/not_to_not.rb in rubocop-rspec-2.11.1 vs lib/rubocop/cop/rspec/not_to_not.rb in rubocop-rspec-2.12.0
- old
+ new
@@ -3,18 +3,31 @@
module RuboCop
module Cop
module RSpec
# Checks for consistent method usage for negating expectations.
#
- # @example
+ # @example `EnforcedStyle: not_to` (default)
+ #
# # bad
# it '...' do
# expect(false).to_not be_true
# end
#
# # good
# it '...' do
# expect(false).not_to be_true
+ # end
+ #
+ # @example `EnforcedStyle: to_not`
+ #
+ # # bad
+ # it '...' do
+ # expect(false).not_to be_true
+ # end
+ #
+ # # good
+ # it '...' do
+ # expect(false).to_not be_true
# end
class NotToNot < Base
extend AutoCorrector
include ConfigurableEnforcedStyle