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: 7f557b25ccbb11af99b8e5b4345cd6b6968c9843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FactoryGirl.define do
  factory :ci_stage, class: Ci::Stage do
    transient do
      name 'test'
      status nil
      warnings nil
      pipeline factory: :ci_empty_pipeline
    end

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