mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-30 03:50:13 -05:00
add test
This commit is contained in:
parent
b10608299e
commit
1ba51a4c35
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user