lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-1.40.0 vs lib/rubocop/cop/rspec/predicate_matcher.rb in rubocop-rspec-1.41.0
- old
+ new
@@ -275,15 +275,15 @@
#
# # good
# expect(foo).to be_something
#
# # also good - It checks "true" strictly.
- # expect(foo).to be(true)
+ # expect(foo.something?).to be(true)
#
# @example Strict: false, EnforcedStyle: inflected
# # bad
# expect(foo.something?).to be_truthy
- # expect(foo).to be(true)
+ # expect(foo.something?).to be(true)
#
# # good
# expect(foo).to be_something
#
# @example Strict: true, EnforcedStyle: explicit