mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 01:24:33 +08:00
DEV: Default to skipping creating a topic when fabricating categories (#7976)
This speeds up the test suite by 9%
This commit is contained in:

committed by
GitHub

parent
dbb410697e
commit
4ae8065f2c
@ -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",
|
||||
|
Reference in New Issue
Block a user