From 93f2c97266263a6b9d65598bbfe046c8365f520c Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Sat, 22 Jul 2017 22:49:04 -0400 Subject: [PATCH] simplify spec --- spec/jobs/delete_topic_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/jobs/delete_topic_spec.rb b/spec/jobs/delete_topic_spec.rb index fed6c8b9fbc..afab1a25880 100644 --- a/spec/jobs/delete_topic_spec.rb +++ b/spec/jobs/delete_topic_spec.rb @@ -44,9 +44,7 @@ describe Jobs::DeleteTopic do describe "user isn't authorized to delete topics" do let(:topic) { - Fabricate(:topic, - topic_timers: [Fabricate(:topic_timer, user: Fabricate(:user))] - ) + Fabricate(:topic_timer, user: Fabricate(:user)).topic } it "shouldn't delete the topic" do