diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-11-19 00:43:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-19 00:43:52 +0100 |
commit | d6b9a62e0a13497b8cc40eb1db56d1ec2b3760ea (patch) | |
tree | f8627888dd9dce43f66427261a90a3e9886b4df7 /spec/models/account_spec.rb | |
parent | 4fdefffb9906ffc3e5fde7af652674bebffd6e15 (diff) |
Extract counters from accounts table to account_stats table (#9295)
Diffstat (limited to 'spec/models/account_spec.rb')
-rw-r--r-- | spec/models/account_spec.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb index 60d13d32e..9133616a2 100644 --- a/spec/models/account_spec.rb +++ b/spec/models/account_spec.rb @@ -754,24 +754,6 @@ RSpec.describe Account, type: :model do expect(Account.suspended).to match_array([account_1]) end end - - describe 'without_followers' do - it 'returns a relation of accounts without followers' do - account_1 = Fabricate(:account) - account_2 = Fabricate(:account) - Fabricate(:follow, account: account_1, target_account: account_2) - expect(Account.without_followers).to match_array([account_1]) - end - end - - describe 'with_followers' do - it 'returns a relation of accounts with followers' do - account_1 = Fabricate(:account) - account_2 = Fabricate(:account) - Fabricate(:follow, account: account_1, target_account: account_2) - expect(Account.with_followers).to match_array([account_2]) - end - end end context 'when is local' do |