summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/sidekiq_status/client_middleware_spec.rb
blob: 287bf62d9bdca1f4e900491a7375bf807025f721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require 'spec_helper'

describe Gitlab::SidekiqStatus::ClientMiddleware do
  describe '#call' do
    it 'tracks the job in Redis' do
      expect(Gitlab::SidekiqStatus).to receive(:set).with('123')

      described_class.new.
        call('Foo', { 'jid' => '123' }, double(:queue), double(:pool)) { nil }
    end
  end
end