summaryrefslogtreecommitdiff
path: root/spec/workers/pipeline_update_ci_ref_status_worker_service_spec.rb
blob: 4e7af16c63d4ebed797af7cb27e8eaf56db72285 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'spec_helper'

# NOTE: This class is unused and to be removed in 13.1~
RSpec.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