debian-mirror-gitlab/spec/workers/onboarding/progress_worker_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
703 B
Ruby
Raw Normal View History

2021-04-17 20:07:23 +05:30
# frozen_string_literal: true
require 'spec_helper'
2023-05-27 22:25:52 +05:30
RSpec.describe Onboarding::ProgressWorker, '#perform', feature_category: :onboarding do
2021-04-17 20:07:23 +05:30
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