From 1d494abc6f5b9b37a3b45ad99d2187094f3bcd28 Mon Sep 17 00:00:00 2001 From: Jonathan de Jong Date: Fri, 1 Dec 2023 11:36:34 +0100 Subject: [PATCH] fix tests --- spec/workers/feed_insert_worker_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/workers/feed_insert_worker_spec.rb b/spec/workers/feed_insert_worker_spec.rb index e9484879ff4..8579cc4ce7a 100644 --- a/spec/workers/feed_insert_worker_spec.rb +++ b/spec/workers/feed_insert_worker_spec.rb @@ -32,7 +32,7 @@ describe FeedInsertWorker do context 'when there are real records' do it 'skips the push when there is a filter' do - instance = instance_double(FeedManager, push_to_home: nil, filter?: true) + instance = instance_double(FeedManager, push_to_home: nil, filter?: true, filter_notification?: true) allow(FeedManager).to receive(:instance).and_return(instance) result = subject.perform(status.id, follower.id) @@ -41,7 +41,7 @@ describe FeedInsertWorker do end it 'pushes the status onto the home timeline without filter' do - instance = instance_double(FeedManager, push_to_home: nil, filter?: false) + instance = instance_double(FeedManager, push_to_home: nil, filter?: false, filter_notification?: false) allow(FeedManager).to receive(:instance).and_return(instance) result = subject.perform(status.id, follower.id, :home)