Clean up of RSpec/LetSetup
within spec/models
(#28444)
This commit is contained in:
parent
87e2bd02ac
commit
c753b1ad35
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue