debian-mirror-gitlab/spec/factories/bulk_import.rb
2023-03-04 22:38:38 +05:30

26 lines
455 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :bulk_import, class: 'BulkImport' do
user
source_type { :gitlab }
source_version { BulkImport.min_gl_version_for_project_migration.to_s }
source_enterprise { false }
trait :created do
status { 0 }
end
trait :started do
status { 1 }
end
trait :finished do
status { 2 }
end
trait :failed do
status { -1 }
end
end
end