diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-09-26 09:13:39 +0300 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2018-10-02 18:08:11 +0300 |
commit | 6eee8d2d53a327051515ec18953726fd5606c000 (patch) | |
tree | eaa41f674dda46bf1407869645b1994198485f35 /spec/factories/ci/builds.rb | |
parent | af4b85cef57c00f4cccdac7fde15d4c69d9e94fb (diff) |
Fix process build service spec
Diffstat (limited to 'spec/factories/ci/builds.rb')
-rw-r--r-- | spec/factories/ci/builds.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index 9813190925b..aea6b5d6b2f 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -98,6 +98,15 @@ FactoryBot.define do success end + trait :schedulable do + self.when 'delayed' + options start_in: '1 minute' + end + + trait :actionable do + self.when 'manual' + end + trait :retried do retried true end |