Sha256: 35de59c8fe7ce0cec122b5afee5f10ae1fd0597547b2ff3d85f61ab3269b38ae
Contents?: true
Size: 987 Bytes
Versions: 1
Compression:
Stored size: 987 Bytes
Contents
require 'spec_helper' describe Sidekiq::Hol::Worker do before { Sidekiq.redis(&:flushdb) } describe 'worker' do context 'that includes sidekiq only' do subject { MyWorker } it { should respond_to :perform_async } it { should_not respond_to :perform_hol_async } end context 'that includes sidekiq and sidekiq-hol' do subject { MyHol2Worker } it { should respond_to :perform_async } it { should respond_to :perform_hol_async } end context 'that includes sidekiq-hol only' do subject { MyHolOnlyWorker } it { should respond_to :perform_async } it { should respond_to :perform_hol_async } end end end class MyWorker include Sidekiq::Worker sidekiq_options queue: :some_queue end class MyHol2Worker include Sidekiq::Worker include Sidekiq::Hol::Worker sidekiq_options queue: :some_queue end class MyHolOnlyWorker include Sidekiq::Hol::Worker sidekiq_options queue: :some_queue end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-hol-0.0.1 | spec/sidekiq/hol/worker_spec.rb |