2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

simplify spec

This commit is contained in:
Sam Saffron 2017-07-22 22:49:04 -04:00
parent 687fbf5f09
commit 93f2c97266

View file

@ -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