debian-mirror-gitlab/spec/workers/namespaces/onboarding_pipeline_created_worker_spec.rb
2021-03-11 19:13:27 +05:30

18 lines
528 B
Ruby

# 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