simplify spec
This commit is contained in:
parent
687fbf5f09
commit
93f2c97266
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue