8c42a0eac0
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
14 lines
397 B
Ruby
14 lines
397 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|