mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 00:43:24 +08:00
fa5a158683
It is not a setting, and only relevant in specs. The new API is: ``` Jobs.run_later! # jobs will be thrown on the queue Jobs.run_immediately! # jobs will run right away, avoid the queue ```
14 lines
254 B
Plaintext
14 lines
254 B
Plaintext
require 'rails_helper'
|
|
|
|
describe <%= name %>::ActionsController do
|
|
before do
|
|
Jobs.run_immediately!
|
|
end
|
|
|
|
it 'can list' do
|
|
sign_in(Fabricate(:user))
|
|
get "/<%= dasherized_name %>/list.json"
|
|
expect(response.status).to eq(200)
|
|
end
|
|
end
|