single line for fabricated status when its not humongous

This commit is contained in:
sneakers-the-rat 2024-12-02 19:50:43 -08:00 committed by Jonny Saunders
parent 63ed1ddd15
commit a7b0661d56

View File

@ -264,14 +264,7 @@ RSpec.describe ActivityPub::FetchAllRepliesWorker do
context 'when replies should not be fetched' 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 # ensure that we should not fetch by setting the status to be created in the debounce window
let(:status) do let(:status) { Fabricate(:status, account: account, uri: top_note_uri, created_at: DateTime.now) }
Fabricate(
:status,
account: account,
uri: top_note_uri,
created_at: DateTime.now
)
end
before do before do
stub_const('Status::FetchRepliesConcern::CREATED_RECENTLY_DEBOUNCE', 1.week) stub_const('Status::FetchRepliesConcern::CREATED_RECENTLY_DEBOUNCE', 1.week)