diff options
author | beatrix <beatrix.bitrot@gmail.com> | 2017-10-20 10:49:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-20 10:49:54 -0400 |
commit | a7be86e875cb0eb38ca2140306f84267d819905c (patch) | |
tree | ac664ea3b7156e2f5faeb73b8fcefae5f81c611e /spec/lib | |
parent | b15dd0551431ab66a9c5027e24bafb202cf6e645 (diff) |
hide mentions of muted accounts (in home col) (#190)
* hide mentions of muted accounts (in home col) also cleans up some old crap * add test
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/feed_manager_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/lib/feed_manager_spec.rb b/spec/lib/feed_manager_spec.rb index 0f97a579e..1861cc6ed 100644 --- a/spec/lib/feed_manager_spec.rb +++ b/spec/lib/feed_manager_spec.rb @@ -105,6 +105,13 @@ RSpec.describe FeedManager do expect(FeedManager.instance.filter?(:home, status, bob.id)).to be true end + it 'returns true for status by followee mentioning muted account' do + bob.mute!(jeff) + bob.follow!(alice) + status = PostStatusService.new.call(alice, 'Hey @jeff') + expect(FeedManager.instance.filter?(:home, status, bob.id)).to be true + end + it 'returns true for reblog of a personally blocked domain' do alice.block_domain!('example.com') alice.follow!(jeff) |