debian-mirror-gitlab/spec/workers/namespaces/onboarding_pipeline_created_worker_spec.rb

18 lines
528 B
Ruby
Raw Normal View History

2021-03-08 18:12:59 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Namespaces::OnboardingPipelineCreatedWorker, '#perform' do
let_it_be(:ci_pipeline) { create(:ci_pipeline) }
2021-03-11 19:13:27 +05:30
it_behaves_like 'records an onboarding progress action', :pipeline_created do
let(:namespace) { ci_pipeline.project.namespace }
2021-03-08 18:12:59 +05:30
2021-03-11 19:13:27 +05:30
subject { described_class.new.perform(ci_pipeline.project.namespace_id) }
2021-03-08 18:12:59 +05:30
end
2021-03-11 19:13:27 +05:30
it_behaves_like 'does not record an onboarding progress action' do
subject { described_class.new.perform(nil) }
2021-03-08 18:12:59 +05:30
end
end