mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 19:29:34 +08:00
Revert "DEV: Queue jobs in tests by default."
Too risky for now This reverts commit be28154d3b9289a249d413d462705cd075375888.
This commit is contained in:
@ -10,7 +10,6 @@ describe CategoriesController do
|
||||
|
||||
describe "logged in" do
|
||||
before do
|
||||
SiteSetting.queue_jobs = false
|
||||
@user = log_in(:admin)
|
||||
end
|
||||
|
||||
@ -50,6 +49,8 @@ describe CategoriesController do
|
||||
}, format: :json
|
||||
end
|
||||
|
||||
it { is_expected.not_to respond_with(:success) }
|
||||
|
||||
it "returns errors on a duplicate category name" do
|
||||
expect(response.status).to eq(422)
|
||||
end
|
||||
@ -156,9 +157,6 @@ describe CategoriesController do
|
||||
end
|
||||
|
||||
describe "update" do
|
||||
before do
|
||||
SiteSetting.queue_jobs = false
|
||||
end
|
||||
|
||||
it "requires the user to be logged in" do
|
||||
put :update, params: { id: 'category' }, format: :json
|
||||
|
Reference in New Issue
Block a user