Skip to content

Commit

Permalink
Merge pull request #1243 from koic/fix_a_typo
Browse files Browse the repository at this point in the history
Fix a typo for `RSpec/BeNil` cop
  • Loading branch information
Darhazer authored Feb 28, 2022
2 parents d3c350c + 5d34640 commit d8a44b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/cops_rspec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ expect(foo).to be(nil)
Check that `be_nil` is used instead of `be(nil)`.

RSpec has a built-in `be_nil` matcher specifically for expecting `nil`.
For consistent specs, we recommend using that instead of `be(nil).
For consistent specs, we recommend using that instead of `be(nil)`.

=== Examples

Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/be_nil.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module RSpec
# Check that `be_nil` is used instead of `be(nil)`.
#
# RSpec has a built-in `be_nil` matcher specifically for expecting `nil`.
# For consistent specs, we recommend using that instead of `be(nil).
# For consistent specs, we recommend using that instead of `be(nil)`.
#
# @example
#
Expand Down

0 comments on commit d8a44b9

Please sign in to comment.