lib/rubocop/cop/rspec/rails/negation_be_valid.rb in rubocop-rspec-2.23.2 vs lib/rubocop/cop/rspec/rails/negation_be_valid.rb in rubocop-rspec-2.24.0
- old
+ new
@@ -15,15 +15,21 @@
# expect(foo).to be_invalid
#
# # good
# expect(foo).not_to be_valid
#
+ # # good (with method chain)
+ # expect(foo).to be_invalid.and be_odd
+ #
# @example EnforcedStyle: be_invalid
# # bad
# expect(foo).not_to be_valid
#
# # good
# expect(foo).to be_invalid
+ #
+ # # good (with method chain)
+ # expect(foo).to be_invalid.or be_even
#
class NegationBeValid < Base
extend AutoCorrector
include ConfigurableEnforcedStyle