Browse Source

specs testing that hide_notifications in mutes actually hides notifications

closed-social-glitch-2
Surinna Curtis 7 years ago
parent
commit
5c2e1869f0
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      spec/services/notify_service_spec.rb

+ 10
- 0
spec/services/notify_service_spec.rb View File

@ -17,6 +17,16 @@ RSpec.describe NotifyService do
is_expected.to_not change(Notification, :count)
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
recipient.block_domain!(sender.domain)
is_expected.to_not change(Notification, :count)

Loading…
Cancel
Save