DEV: Default to skipping creating a topic when fabricating categories (#7976)

This speeds up the test suite by 9%
This commit is contained in:
Daniel Waterworth
2019-08-06 11:26:54 +01:00
committed by GitHub
parent dbb410697e
commit 4ae8065f2c
15 changed files with 178 additions and 169 deletions

View File

@ -186,7 +186,7 @@ RSpec.describe Admin::UsersController do
end
it "won't delete a category topic" do
c = Fabricate(:category)
c = Fabricate(:category_with_definition)
cat_post = c.topic.posts.first
put(
"/admin/users/#{user.id}/suspend.json",
@ -201,7 +201,7 @@ RSpec.describe Admin::UsersController do
end
it "won't delete a category topic by replies" do
c = Fabricate(:category)
c = Fabricate(:category_with_definition)
cat_post = c.topic.posts.first
put(
"/admin/users/#{user.id}/suspend.json",