0
0
Fork 0

Preparing feeds for better filtering

This commit is contained in:
Eugen Rochko 2016-10-02 15:28:47 +02:00
parent 1fce687f8e
commit be86d4e0a3
5 changed files with 22 additions and 9 deletions

View file

@ -9,12 +9,12 @@ RSpec.describe FeedManager do
end
end
describe '#filter_status?' do
describe '#filter?' do
let(:followee) { Fabricate(:account, username: 'alice') }
let(:status) { Fabricate(:status, text: 'Hello world', account: followee) }
let(:follower) { Fabricate(:account, username: 'bob') }
subject { FeedManager.instance.filter_status?(status, follower) }
subject { FeedManager.instance.filter?(:home, status, follower) }
it 'returns a boolean value' do
expect(subject).to be false