Sha256: 7d560e8b313e6bcb077a5c38d287abe4fd424ae19c73fcf95d2e9957ba31f15d
Contents?: true
Size: 702 Bytes
Versions: 2
Compression:
Stored size: 702 Bytes
Contents
require 'spec_helper' require 'sidekiq-apriori/middleware/prioritizer' describe Sidekiq::Apriori, 'server middleware' do before do Sidekiq.stub(:server? => true) Sidekiq.configure_server do |config| config.client_middleware do |chain| chain.remove Sidekiq::Apriori::Prioritizer end end end it "should include Sidekiq::Apriori::Prioritizer in client middleware" do Sidekiq.client_middleware.entries.should be_empty (require 'sidekiq-apriori/middleware/server').should be_true Sidekiq.client_middleware.entries.should_not be_empty Sidekiq.client_middleware.entries.map(&:klass). should be_include(Sidekiq::Apriori::Prioritizer) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-apriori-0.0.3 | spec/sidekiq-apriori/middleware/server_spec.rb |
sidekiq-apriori-0.0.2 | spec/sidekiq-apriori/middleware/server_spec.rb |