24 lines
469 B
Ruby
24 lines
469 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :project_export_job do
|
|
project
|
|
jid { SecureRandom.hex(8) }
|
|
|
|
trait :queued do
|
|
status { ProjectExportJob::STATUS[:queued] }
|
|
end
|
|
|
|
trait :started do
|
|
status { ProjectExportJob::STATUS[:started] }
|
|
end
|
|
|
|
trait :finished do
|
|
status { ProjectExportJob::STATUS[:finished] }
|
|
end
|
|
|
|
trait :failed do
|
|
status { ProjectExportJob::STATUS[:failed] }
|
|
end
|
|
end
|
|
end
|