debian-mirror-gitlab/spec/factories/bulk_import.rb

25 lines
347 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :bulk_import, class: 'BulkImport' do
user
source_type { :gitlab }
2021-01-29 00:20:46 +05:30
trait :created do
status { 0 }
end
trait :started do
status { 1 }
end
trait :finished do
status { 2 }
end
trait :failed do
status { -1 }
end
2021-01-03 14:25:43 +05:30
end
end