File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -277,12 +277,12 @@ def replacement_matcher(node)
277277 # expect(foo).to be_something
278278 #
279279 # # also good - It checks "true" strictly.
280- # expect(foo).to be(true)
280+ # expect(foo.something? ).to be(true)
281281 #
282282 # @example Strict: false, EnforcedStyle: inflected
283283 # # bad
284284 # expect(foo.something?).to be_truthy
285- # expect(foo).to be(true)
285+ # expect(foo.something? ).to be(true)
286286 #
287287 # # good
288288 # expect(foo).to be_something
Original file line number Diff line number Diff line change @@ -2452,14 +2452,14 @@ expect(foo.something?).to be_truthy
24522452expect(foo).to be_something
24532453
24542454# also good - It checks "true" strictly.
2455- expect(foo).to be(true )
2455+ expect(foo.something? ).to be(true )
24562456```
24572457#### Strict: false, EnforcedStyle: inflected
24582458
24592459``` ruby
24602460# bad
24612461expect(foo.something?).to be_truthy
2462- expect(foo).to be(true )
2462+ expect(foo.something? ).to be(true )
24632463
24642464# good
24652465expect(foo).to be_something
You can’t perform that action at this time.
0 commit comments