Sha256: 312098c657a65147fdf2142af30d72b927791c3daf0ccb4425464b98a6aa27ef

Contents?: true

Size: 393 Bytes

Versions: 2

Compression:

Stored size: 393 Bytes

Contents

require 'spec_helper'
require 'sidekiq'
require 'hawkei/plugins/sidekiq/client_middleware'

describe Hawkei::Plugins::Sidekiq::ClientMiddleware do

  let(:middleware) { Hawkei::Plugins::Sidekiq::ClientMiddleware.new }

  describe '#call' do
    before { Hawkei::Store.set(:tracker_id, 1) }

    it { expect { middleware.call('MyWorker', {}, 'default', {}) {} }.to_not raise_error }
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hawkei-1.1.0 spec/lib/hawkei/plugins/sidekiq/client_middleware_spec.rb
hawkei-1.0.0 spec/lib/hawkei/plugins/sidekiq/client_middleware_spec.rb