about summary refs log tree commit diff
path: root/spec/lib/feed_manager_spec.rb
diff options
context:
space:
mode:
authorReverite <github@reverite.sh>2019-05-15 11:12:17 -0700
committerReverite <github@reverite.sh>2019-05-15 11:12:17 -0700
commit4cea89bf2e9ce7f73fccfc637191b1e039ad25ee (patch)
treecc559ad868e13d934ff539bd2da836ddad3ea5fc /spec/lib/feed_manager_spec.rb
parentcdb159f27e2aeb2cf3bb184ac20b7056b013f714 (diff)
parentc1cf8c1636e0a639cced585f0cb234547a64d417 (diff)
Merge branch 'glitch' into production
Diffstat (limited to 'spec/lib/feed_manager_spec.rb')
-rw-r--r--spec/lib/feed_manager_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/feed_manager_spec.rb b/spec/lib/feed_manager_spec.rb
index df92094d1..13850f807 100644
--- a/spec/lib/feed_manager_spec.rb
+++ b/spec/lib/feed_manager_spec.rb
@@ -175,13 +175,13 @@ RSpec.describe FeedManager do
 
       it 'returns true for status by silenced account who recipient is not following' do
         status = Fabricate(:status, text: 'Hello world', account: alice)
-        alice.update(silenced: true)
+        alice.silence!
         expect(FeedManager.instance.filter?(:mentions, status, bob.id)).to be true
       end
 
       it 'returns false for status by followed silenced account' do
         status = Fabricate(:status, text: 'Hello world', account: alice)
-        alice.update(silenced: true)
+        alice.silence!
         bob.follow!(alice)
         expect(FeedManager.instance.filter?(:mentions, status, bob.id)).to be false
       end