0
0
Fork 0

Clean up of RSpec/LetSetup within spec/models (#28444)

This commit is contained in:
Matt Jankowski 2023-12-21 04:18:38 -05:00 committed by GitHub
parent 87e2bd02ac
commit c753b1ad35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ RSpec.describe CanonicalEmailBlock do
end
describe '.block?' do
let!(:canonical_email_block) { Fabricate(:canonical_email_block, email: 'foo@bar.com') }
before { Fabricate(:canonical_email_block, email: 'foo@bar.com') }
it 'returns true for the same email' do
expect(described_class.block?('foo@bar.com')).to be true