From 5d34640b1f6e83de8569f5fce6d8b435cccfd47e Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Mon, 28 Feb 2022 17:25:45 +0900 Subject: [PATCH] Fix a typo for `RSpec/BeNil` cop This PR fixes a typo for `RSpec/BeNil` cop. --- docs/modules/ROOT/pages/cops_rspec.adoc | 2 +- lib/rubocop/cop/rspec/be_nil.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/modules/ROOT/pages/cops_rspec.adoc b/docs/modules/ROOT/pages/cops_rspec.adoc index 467b782bd..bf299cd7d 100644 --- a/docs/modules/ROOT/pages/cops_rspec.adoc +++ b/docs/modules/ROOT/pages/cops_rspec.adoc @@ -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 diff --git a/lib/rubocop/cop/rspec/be_nil.rb b/lib/rubocop/cop/rspec/be_nil.rb index 0e80bbf9c..5878a5ff0 100644 --- a/lib/rubocop/cop/rspec/be_nil.rb +++ b/lib/rubocop/cop/rspec/be_nil.rb @@ -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 #