1
0

silences_spec.rb 434 B

123456789101112131415161718
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe Account::Silences do
  4. describe 'Scopes' do
  5. describe '.silenced' do
  6. let(:silenced_account) { Fabricate :account, silenced: true }
  7. before { Fabricate :account, silenced: false }
  8. it 'returns an array of accounts who are silenced' do
  9. expect(Account.silenced)
  10. .to contain_exactly(silenced_account)
  11. end
  12. end
  13. end
  14. end