about summary refs log tree commit diff
path: root/spec/services/notify_service_spec.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-05-15 18:44:21 +0200
committerGitHub <noreply@github.com>2019-05-15 18:44:21 +0200
commitc1cf8c1636e0a639cced585f0cb234547a64d417 (patch)
tree77b40e8bb0b1682bebaebebfa32d135ba406ac14 /spec/services/notify_service_spec.rb
parent4bab7d7640a72ffeb04c104a93ad6d3d5700c712 (diff)
parent6badf2d252a980d496b894c7258a778c57639953 (diff)
Merge pull request #1049 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec/services/notify_service_spec.rb')
-rw-r--r--spec/services/notify_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/notify_service_spec.rb b/spec/services/notify_service_spec.rb
index 7bfca7fb5..a68fdd8df 100644
--- a/spec/services/notify_service_spec.rb
+++ b/spec/services/notify_service_spec.rb
@@ -39,12 +39,12 @@ RSpec.describe NotifyService, type: :service do
   end
 
   it 'does not notify when sender is silenced and not followed' do
-    sender.update(silenced: true)
+    sender.silence!
     is_expected.to_not change(Notification, :count)
   end
 
   it 'does not notify when recipient is suspended' do
-    recipient.update(suspended: true)
+    recipient.suspend!
     is_expected.to_not change(Notification, :count)
   end