Preparing feeds for better filtering
This commit is contained in:
parent
1fce687f8e
commit
be86d4e0a3
5 changed files with 22 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue