mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 04:53:58 +08:00
12 lines
245 B
Ruby
12 lines
245 B
Ruby
require 'rails_helper'
|
|
require_dependency 'sidekiq/pausable'
|
|
|
|
describe Sidekiq do
|
|
it "can pause and unpause" do
|
|
Sidekiq.pause!
|
|
expect(Sidekiq.paused?).to eq(true)
|
|
Sidekiq.unpause!
|
|
expect(Sidekiq.paused?).to eq(false)
|
|
end
|
|
end
|