2017-08-17 22:00:37 +05:30
|
|
|
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)
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
described_class.new
|
|
|
|
.call('Foo', { 'jid' => '123' }, double(:queue), double(:pool)) { nil }
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|