blob: da760c2336704d4b641c5378edc0914654f5d40f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Onboarding::ProgressWorker, '#perform', feature_category: :onboarding do
let_it_be(:namespace) { create(:namespace) }
let_it_be(:action) { 'git_pull' }
it_behaves_like 'records an onboarding progress action', :git_pull do
include_examples 'an idempotent worker' do
subject { described_class.new.perform(namespace.id, action) }
end
end
it_behaves_like 'does not record an onboarding progress action' do
subject { described_class.new.perform(namespace.id, nil) }
end
it_behaves_like 'does not record an onboarding progress action' do
subject { described_class.new.perform(nil, action) }
end
end
|