mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
simplify spec
This commit is contained in:
parent
687fbf5f09
commit
93f2c97266
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue