diff options
author | Dosuken shinya <gitlab.shinyamaeda@gmail.com> | 2017-04-28 12:38:32 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-28 12:38:32 +0300 |
commit | 73ac7b2dd6ad31b0ab3191d123cc0b17c669cefb (patch) | |
tree | f6b628a6e8d6baea557ed989e669a830ec6873b0 /spec/factories/ci/builds.rb | |
parent | 00fd0259e5878957320ef2adc4940cbd73614add (diff) |
Resolve "Add more tests for spec/controllers/projects/builds_controller_spec.rb"
Diffstat (limited to 'spec/factories/ci/builds.rb')
-rw-r--r-- | spec/factories/ci/builds.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index b62def83ee4..78ddd8d5584 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -79,6 +79,19 @@ FactoryGirl.define do manual end + trait :retryable do + success + end + + trait :cancelable do + pending + end + + trait :erasable do + success + artifacts + end + trait :tags do tag_list [:docker, :ruby] end |