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

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