diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-12-06 16:49:37 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-12-06 18:04:30 +0300 |
commit | 953a10947bea8ff75290cd50fae4ae1f7636a71d (patch) | |
tree | 060ae96378341519786aa236050c110a246047ae /spec/factories/ci | |
parent | 401c155e16e4966be538fd14f23e268cd3383aa7 (diff) |
Added Ci::Stage specs
Diffstat (limited to 'spec/factories/ci')
-rw-r--r-- | spec/factories/ci/stages.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/factories/ci/stages.rb b/spec/factories/ci/stages.rb new file mode 100644 index 00000000000..ee3b17b8bf1 --- /dev/null +++ b/spec/factories/ci/stages.rb @@ -0,0 +1,13 @@ +FactoryGirl.define do + factory :ci_stage, class: Ci::Stage do + transient do + name 'test' + status nil + pipeline factory: :ci_empty_pipeline + end + + initialize_with do + Ci::Stage.new(pipeline, name: name, status: status) + end + end +end |