diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-02 15:28:47 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-02 15:28:47 +0200 |
commit | be86d4e0a3c40e95648971bc9b0fe58c58cbc5da (patch) | |
tree | f00b24db4b12d8e5254d71a0b5734008916c0d53 /spec/lib | |
parent | 1fce687f8e03d78b4b842422fc6621bba439e1cd (diff) |
Preparing feeds for better filtering
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/feed_manager_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/feed_manager_spec.rb b/spec/lib/feed_manager_spec.rb index 4501e27b7..14553221f 100644 --- a/spec/lib/feed_manager_spec.rb +++ b/spec/lib/feed_manager_spec.rb @@ -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 |