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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
469 B
Ruby
Raw Normal View History

2020-04-08 14:13:33 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :project_export_job do
project
jid { SecureRandom.hex(8) }
2023-03-04 22:38:38 +05:30
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
2020-04-08 14:13:33 +05:30
end
end