Fix RSpec/LetSetup cop in spec/services (#28459)
This commit is contained in:
@@ -27,6 +27,7 @@ RSpec.describe UnallowDomainService, type: :service do
|
||||
end
|
||||
|
||||
it 'removes remote accounts from that domain' do
|
||||
expect { already_banned_account.reload }.to raise_error(ActiveRecord::RecordNotFound)
|
||||
expect(Account.where(domain: 'evil.org').exists?).to be false
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user