Welcome to mirror list, hosted at ThFree Co, Russian Federation.

client_middleware_spec.rb « sidekiq_status « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 37d9e1d3e6b0426ab722aa9249227b17c462c1bd (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', Gitlab::SidekiqStatus::DEFAULT_EXPIRATION)

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