Welcome to mirror list, hosted at ThFree Co, Russian Federation.

export_batches.rb « bulk_import « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4339b02d27e6e2c15658cfb1ed49b3f1275cf2ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

FactoryBot.define do
  factory :bulk_import_export_batch, class: 'BulkImports::ExportBatch' do
    association :export, factory: :bulk_import_export

    upload { association(:bulk_import_export_upload) }

    status { 0 }

    trait :started do
      status { 0 }
    end

    trait :finished do
      status { 1 }
    end

    trait :failed do
      status { -1 }
    end
  end
end