diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-12 14:53:05 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-12 14:53:05 +0100 |
commit | f91e8269c18ac80d6f43fdd7b87362e5c9ccbc94 (patch) | |
tree | bcf59eecbbb4e3506d8a31a818231bcead34b606 /spec/factories | |
parent | ffafd0973100a53efc46011ca4415e8385e0cc07 (diff) | |
download | gitlab-ce-f91e8269c18ac80d6f43fdd7b87362e5c9ccbc94.tar.gz |
Add tests for build play extended detailed status
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/ci/builds.rb | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index c443af09075..62466c06194 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -12,12 +12,14 @@ FactoryGirl.define do started_at 'Di 29. Okt 09:51:28 CET 2013' finished_at 'Di 29. Okt 09:53:28 CET 2013' commands 'ls -a' + options do { image: "ruby:2.1", services: ["postgres"] } end + yaml_variables do [ { key: :DB_NAME, value: 'postgres', public: true } @@ -60,15 +62,20 @@ FactoryGirl.define do end trait :teardown_environment do - options do - { environment: { action: 'stop' } } - end + environment 'staging' + options environment: { name: 'staging', + action: 'stop' } end trait :allowed_to_fail do allow_failure true end + trait :playable do + skipped + manual + end + after(:build) do |build, evaluator| build.project = build.pipeline.project end |