Revert "DEV: Queue jobs in tests by default."

Too risky for now

This reverts commit be28154d3b9289a249d413d462705cd075375888.
This commit is contained in:
Guo Xiang Tan
2018-05-31 15:34:46 +08:00
parent 2b783997fa
commit 56e9ff6853
42 changed files with 79 additions and 75 deletions

View File

@ -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