mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 22:19:32 +00:00
19 lines
434 B
Ruby
19 lines
434 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe Account::Silences do
|
|
describe 'Scopes' do
|
|
describe '.silenced' do
|
|
let(:silenced_account) { Fabricate :account, silenced: true }
|
|
|
|
before { Fabricate :account, silenced: false }
|
|
|
|
it 'returns an array of accounts who are silenced' do
|
|
expect(Account.silenced)
|
|
.to contain_exactly(silenced_account)
|
|
end
|
|
end
|
|
end
|
|
end
|