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

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

FactoryBot.define do
  factory :jira_import_state do
    project
    user { project&.creator }
    label
    jira_project_name { generate(:name) }
    jira_project_key { generate(:name) }
    jira_project_xid { 1234 }
  end

  trait :scheduled do
    status { :scheduled }
  end

  trait :started do
    status { :started }
  end

  trait :failed do
    status { :failed }
  end

  trait :finished do
    status { :finished }
  end
end