simplify spec

This commit is contained in:
Sam Saffron 2017-07-22 22:49:04 -04:00
parent 687fbf5f09
commit 93f2c97266
1 changed files with 1 additions and 3 deletions

View File

@ -44,9 +44,7 @@ describe Jobs::DeleteTopic do
describe "user isn't authorized to delete topics" do describe "user isn't authorized to delete topics" do
let(:topic) { let(:topic) {
Fabricate(:topic, Fabricate(:topic_timer, user: Fabricate(:user)).topic
topic_timers: [Fabricate(:topic_timer, user: Fabricate(:user))]
)
} }
it "shouldn't delete the topic" do it "shouldn't delete the topic" do