0
0
Fork 0

Revert "Use PostgreSQL inheritance for blocks and mutes (#2520)" (#2634)

This reverts commit 5135d609b7.
This commit is contained in:
Akihiko Odaki 2017-04-30 21:49:24 +09:00 committed by Matt Jankowski
parent 4a5f73c8ae
commit a6788662b0
7 changed files with 12 additions and 43 deletions

View file

@ -193,9 +193,9 @@ RSpec.describe Account, type: :model do
describe '#excluded_from_timeline_account_ids' do
it 'includes account ids of blockings, blocked_bys and mutes' do
account = Fabricate(:account)
block = Fabricate(:block, account: account, block: true)
mute = Fabricate(:mute, account: account, block: false)
block_by = Fabricate(:block, target_account: account, block: true)
block = Fabricate(:block, account: account)
mute = Fabricate(:mute, account: account)
block_by = Fabricate(:block, target_account: account)
results = account.excluded_from_timeline_account_ids
expect(results.size).to eq 3