mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
specs testing that hide_notifications in mutes actually hides notifications
This commit is contained in:
parent
0f2af2a974
commit
5c2e1869f0
@ -17,6 +17,16 @@ RSpec.describe NotifyService do
|
|||||||
is_expected.to_not change(Notification, :count)
|
is_expected.to_not change(Notification, :count)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'does not notify when sender is muted with hide_notifications' do
|
||||||
|
recipient.mute!(sender, notifications: true)
|
||||||
|
is_expected.to_not change(Notification, :count)
|
||||||
|
end
|
||||||
|
|
||||||
|
it 'does notify when sender is muted without hide_notifications' do
|
||||||
|
recipient.mute!(sender, notifications: false)
|
||||||
|
is_expected.to change(Notification, :count)
|
||||||
|
end
|
||||||
|
|
||||||
it 'does not notify when sender\'s domain is blocked' do
|
it 'does not notify when sender\'s domain is blocked' do
|
||||||
recipient.block_domain!(sender.domain)
|
recipient.block_domain!(sender.domain)
|
||||||
is_expected.to_not change(Notification, :count)
|
is_expected.to_not change(Notification, :count)
|
||||||
|
Loading…
Reference in New Issue
Block a user