diff --git a/spec/jobs/delete_topic_spec.rb b/spec/jobs/delete_topic_spec.rb index 11a49d7a29c..b61667c48e5 100644 --- a/spec/jobs/delete_topic_spec.rb +++ b/spec/jobs/delete_topic_spec.rb @@ -4,9 +4,7 @@ describe Jobs::DeleteTopic do let(:admin) { Fabricate(:admin) } let(:topic) do - Fabricate(:topic, - topic_timers: [Fabricate(:topic_timer, user: admin)] - ) + Fabricate(:topic_timer, user: admin).topic end let(:first_post) { create_post(topic: topic) }