mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-18 16:43:51 -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
|
expect(FeedManager.instance.filter?(:home, status, bob.id)).to be true
|
||||||
end
|
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
|
it 'returns true for reblog of a personally blocked domain' do
|
||||||
alice.block_domain!('example.com')
|
alice.block_domain!('example.com')
|
||||||
alice.follow!(jeff)
|
alice.follow!(jeff)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user