Skip to content

Commit

Permalink
fixup! yet another doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Jun 17, 2020
1 parent 225e7d9 commit 12539d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/predicate_matcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def replacement_matcher(node)
# @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
Expand Down
2 changes: 1 addition & 1 deletion manual/cops_rspec.md
Original file line number Diff line number Diff line change
Expand Up @@ -2459,7 +2459,7 @@ expect(foo.something?).to be(true)
```ruby
# bad
expect(foo.something?).to be_truthy
expect(foo).to be(true)
expect(foo.something?).to be(true)

# good
expect(foo).to be_something
Expand Down

0 comments on commit 12539d3

Please sign in to comment.