summaryrefslogtreecommitdiff
path: root/spec/workers/namespaces/onboarding_pipeline_created_worker_spec.rb
blob: 6d69ccb50bdff3e821012516ecb04832fa2d242b (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 Namespaces::OnboardingPipelineCreatedWorker, '#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