Welcome to mirror list, hosted at ThFree Co, Russian Federation.

drop_older_deployments_worker_spec.rb « deployments « workers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0cf524ca16f271ec170607d7125d169005adba7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Deployments::DropOlderDeploymentsWorker do
  subject { described_class.new.perform(deployment&.id) }

  describe '#perform' do
    let(:deployment) { create(:deployment, :success) }

    it 'executes Deployments::OlderDeploymentsDropService' do
      expect(Deployments::OlderDeploymentsDropService)
          .to receive(:new).with(deployment.id).and_call_original

      subject
    end
  end
end