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
|
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…
Reference in New Issue