From a7b0661d560dfb6e9a9f07a9a30d9e91aec237d1 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Mon, 2 Dec 2024 19:50:43 -0800 Subject: [PATCH] single line for fabricated status when its not humongous --- .../workers/activitypub/fetch_all_replies_worker_spec.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/spec/workers/activitypub/fetch_all_replies_worker_spec.rb b/spec/workers/activitypub/fetch_all_replies_worker_spec.rb index 481fc017df..9df1ce498a 100644 --- a/spec/workers/activitypub/fetch_all_replies_worker_spec.rb +++ b/spec/workers/activitypub/fetch_all_replies_worker_spec.rb @@ -264,14 +264,7 @@ RSpec.describe ActivityPub::FetchAllRepliesWorker do context 'when replies should not be fetched' do # ensure that we should not fetch by setting the status to be created in the debounce window - let(:status) do - Fabricate( - :status, - account: account, - uri: top_note_uri, - created_at: DateTime.now - ) - end + let(:status) { Fabricate(:status, account: account, uri: top_note_uri, created_at: DateTime.now) } before do stub_const('Status::FetchRepliesConcern::CREATED_RECENTLY_DEBOUNCE', 1.week)