summaryrefslogtreecommitdiff
path: root/spec/workers/onboarding/pipeline_created_worker_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/workers/onboarding/pipeline_created_worker_spec.rb')
-rw-r--r--spec/workers/onboarding/pipeline_created_worker_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/workers/onboarding/pipeline_created_worker_spec.rb b/spec/workers/onboarding/pipeline_created_worker_spec.rb
new file mode 100644
index 00000000000..75bdea28eef
--- /dev/null
+++ b/spec/workers/onboarding/pipeline_created_worker_spec.rb
@@ -0,0 +1,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