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

stages.rb « ci « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d3c8bf9d54fe79df1fbd4a6d1ab668e8a7f4c15a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FactoryGirl.define do
  factory :ci_stage, class: Ci::LegacyStage do
    skip_create

    transient do
      name 'test'
      status nil
      warnings nil
      pipeline factory: :ci_empty_pipeline
    end

    initialize_with do
      Ci::LegacyStage.new(pipeline, name: name,
                                    status: status,
                                    warnings: warnings)
    end
  end
end