diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-27 12:09:01 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-27 12:09:01 +0300 |
commit | 6e7dc3f9d6b95200abd1fcd5cc418a9ae9803e4c (patch) | |
tree | 299cedc6760e39379176bb73a08ecf2352368305 /spec/factories/ci | |
parent | c78a5f67d0bf347da8a486d72515478e20f15d6e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/ci')
-rw-r--r-- | spec/factories/ci/bridge.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/factories/ci/bridge.rb b/spec/factories/ci/bridge.rb index 7727a468633..7258b3367d3 100644 --- a/spec/factories/ci/bridge.rb +++ b/spec/factories/ci/bridge.rb @@ -53,6 +53,11 @@ FactoryBot.define do finished_at { '2013-10-29 09:53:28 CET' } end + trait :success do + finished + status { 'success' } + end + trait :failed do finished status { 'failed' } @@ -75,5 +80,9 @@ FactoryBot.define do trait :playable do manual end + + trait :allowed_to_fail do + allow_failure { true } + end end end |