mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 10:30:15 -05: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
|