From 1ba51a4c3528ac400f18ebbb2637c488bb8107de Mon Sep 17 00:00:00 2001 From: beatrix-bitrot Date: Thu, 19 Oct 2017 22:00:03 +0000 Subject: [PATCH] add test --- spec/lib/feed_manager_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/lib/feed_manager_spec.rb b/spec/lib/feed_manager_spec.rb index 0f97a579e3..1861cc6edf 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)