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: 0cf05fb0a5c435aef78938abf7ee8e8b7aec7002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require 'spec_helper'

RSpec.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