summaryrefslogtreecommitdiff
path: root/spec/factories/ci/stages.rb
blob: d37eabb3e8c8799c15a0379c0e0b07bb8a3524e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FactoryGirl.define do
  factory :ci_stage, class: Ci::Stage do
    skip_create

    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