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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-04 16:31:15 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-04 16:31:15 +0300
commita17c90b2a7331a7427813684b04095b55c4b3cc1 (patch)
treead76404a74e856a37bd5a01d95ea61f0155053d0 /spec/factories
parentf9228f6bf46f1d1caa4c62b80b8bd6ec883d33ae (diff)
Use enumerated status in persisted stage class
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/ci/stages.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/ci/stages.rb b/spec/factories/ci/stages.rb
index d3c8bf9d54f..ee8ac85c92e 100644
--- a/spec/factories/ci/stages.rb
+++ b/spec/factories/ci/stages.rb
@@ -15,4 +15,10 @@ FactoryGirl.define do
warnings: warnings)
end
end
+
+ factory :ci_stage_entity, class: Ci::Stage do
+ project factory: :empty_project
+ pipeline factory: :ci_empty_pipeline
+ status 'pending'
+ end
end