0
0
Fork 0

Remove local_only scope in Status (#4977)

This commit is contained in:
Akihiko Odaki 2017-09-17 12:29:43 +09:00 committed by Eugen Rochko
parent ec36df97c4
commit 198a9a4fa4
2 changed files with 1 additions and 15 deletions

View file

@ -173,19 +173,6 @@ RSpec.describe Status, type: :model do
end
end
describe '.local_only' do
it 'returns only statuses from local accounts' do
local_account = Fabricate(:account, domain: nil)
remote_account = Fabricate(:account, domain: 'test.com')
local_status = Fabricate(:status, account: local_account)
remote_status = Fabricate(:status, account: remote_account)
results = described_class.local_only
expect(results).to include(local_status)
expect(results).not_to include(remote_status)
end
end
describe '.as_home_timeline' do
let(:account) { Fabricate(:account) }
let(:followed) { Fabricate(:account) }