discourse/spec/components/sidekiq/pausable_spec.rb

12 lines
234 B
Ruby
Raw Normal View History

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!
Sidekiq.paused?.should == true
Sidekiq.unpause!
Sidekiq.paused?.should == false
end
end