mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-07-21 23:37:47 +00:00
18 lines
480 B
Ruby
18 lines
480 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :import_placeholder_user_details, class: 'Import::PlaceholderUserDetail' do
|
|
placeholder_user factory: [:user, :placeholder]
|
|
deletion_attempts { 0 }
|
|
last_deletion_attempt_at { nil }
|
|
namespace factory: :group
|
|
organization factory: :organization
|
|
|
|
trait :eligible_for_deletion do
|
|
namespace { nil }
|
|
deletion_attempts { 2 }
|
|
last_deletion_attempt_at { 3.days.ago }
|
|
end
|
|
end
|
|
end
|