Skip to content

Commit d8a44b9

Browse files
authored
Merge pull request #1243 from koic/fix_a_typo
Fix a typo for `RSpec/BeNil` cop
2 parents d3c350c + 5d34640 commit d8a44b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/modules/ROOT/pages/cops_rspec.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ expect(foo).to be(nil)
289289
Check that `be_nil` is used instead of `be(nil)`.
290290

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

294294
=== Examples
295295

lib/rubocop/cop/rspec/be_nil.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module RSpec
66
# Check that `be_nil` is used instead of `be(nil)`.
77
#
88
# RSpec has a built-in `be_nil` matcher specifically for expecting `nil`.
9-
# For consistent specs, we recommend using that instead of `be(nil).
9+
# For consistent specs, we recommend using that instead of `be(nil)`.
1010
#
1111
# @example
1212
#

0 commit comments

Comments
 (0)