Add and apply RSpec/BeNil rubocop rule

This rule was added in rubocop-rspec 2.9.0.

We were using `be_nil` 50% of the time, and `be nil` the rest of the
time. No strong preference for either one, but IMHO we don't lose
anything be being consistent.
This commit is contained in:
Javi Martín
2023-08-29 19:03:48 +02:00
parent 4fc4afa3a7
commit 6268ae9274
16 changed files with 40 additions and 36 deletions

View File

@@ -48,7 +48,7 @@ describe LocalCensusRecords::Import do
import.save!
local_census_record = LocalCensusRecord.find_by(document_number: "X11556678")
expect(local_census_record).not_to be_nil
expect(local_census_record).not_to be nil
expect(local_census_record.document_type).to eq("2")
expect(local_census_record.document_number).to eq("X11556678")
expect(local_census_record.date_of_birth).to eq(Date.parse("07/08/1987"))