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

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

require 'spec_helper'

RSpec.describe Onboarding::PipelineCreatedWorker, '#perform' do
  let_it_be(:ci_pipeline) { create(:ci_pipeline) }

  it_behaves_like 'records an onboarding progress action', :pipeline_created do
    let(:namespace) { ci_pipeline.project.namespace }

    subject { described_class.new.perform(ci_pipeline.project.namespace_id) }
  end

  it_behaves_like 'does not record an onboarding progress action' do
    subject { described_class.new.perform(nil) }
  end
end