]> cat aescling's git repositories - mastodon.git/commitdiff
specs testing that hide_notifications in mutes actually hides notifications
authorSurinna Curtis <ekiru.0@gmail.com>
Thu, 27 Jul 2017 14:08:45 +0000 (09:08 -0500)
committerSurinna Curtis <ekiru.0@gmail.com>
Thu, 14 Sep 2017 02:47:30 +0000 (21:47 -0500)
spec/services/notify_service_spec.rb

index 7a66bd0fe4dc61932fdc4cc056d9200e0c627ce6..7088ae9d1a8a71bf2dbc297c51299d9663e747b9 100644 (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)
This page took 0.028282 seconds and 3 git commands to generate.