0
0
Fork 0

Move account silence-related methods to concern (#28866)

This commit is contained in:
Matt Jankowski 2024-11-11 03:29:55 -05:00 committed by GitHub
parent 157fba4698
commit d033920b7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 41 additions and 22 deletions

View file

@ -983,14 +983,6 @@ RSpec.describe Account do
end
end
describe 'silenced' do
it 'returns an array of accounts who are silenced' do
silenced_account = Fabricate(:account, silenced: true)
_account = Fabricate(:account, silenced: false)
expect(described_class.silenced).to contain_exactly(silenced_account)
end
end
describe 'searchable' do
let!(:suspended_local) { Fabricate(:account, suspended: true, username: 'suspended_local') }
let!(:suspended_remote) { Fabricate(:account, suspended: true, domain: 'example.org', username: 'suspended_remote') }