discourse/spec/components/sidekiq/pausable_spec.rb

12 lines
245 B
Ruby
Raw Normal View History

require 'rails_helper'
require_dependency 'sidekiq/pausable'
describe Sidekiq do
it "can pause and unpause" do
2014-08-19 18:57:34 +08:00
Sidekiq.pause!
2015-01-10 00:34:37 +08:00
expect(Sidekiq.paused?).to eq(true)
2014-08-19 18:57:34 +08:00
Sidekiq.unpause!
2015-01-10 00:34:37 +08:00
expect(Sidekiq.paused?).to eq(false)
end
end