debian-mirror-gitlab/spec/workers/pipeline_update_ci_ref_status_worker_service_spec.rb
2020-04-08 14:13:33 +05:30

19 lines
420 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe PipelineUpdateCiRefStatusWorker do
let(:worker) { described_class.new }
let(:pipeline) { create(:ci_pipeline) }
describe '#perform' do
it 'updates the ci_ref status' do
expect(Ci::UpdateCiRefStatusService).to receive(:new)
.with(pipeline)
.and_return(double(call: true))
worker.perform(pipeline.id)
end
end
end