discourse/spec/components/sidekiq/pausable_spec.rb

12 lines
245 B
Ruby
Raw Normal View History

2016-04-01 05:33:25 +08:00
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