2014-08-19 00:04:58 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
require_dependency 'sidekiq/pausable'
|
|
|
|
|
|
|
|
describe Sidekiq do
|
|
|
|
it "can pause and unpause" do
|
2014-08-19 06:57:34 -04:00
|
|
|
Sidekiq.pause!
|
2015-01-09 11:34:37 -05:00
|
|
|
expect(Sidekiq.paused?).to eq(true)
|
2014-08-19 06:57:34 -04:00
|
|
|
Sidekiq.unpause!
|
2015-01-09 11:34:37 -05:00
|
|
|
expect(Sidekiq.paused?).to eq(false)
|
2014-08-19 00:04:58 -04:00
|
|
|
end
|
|
|
|
end
|