diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-02-18 12:52:57 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-02-18 12:52:57 +0300 |
commit | 0ae7c954537663aa2a574133e42d05eafe5db6fb (patch) | |
tree | abbc6c25673b88a656634a2de1c6e85cb0de8dad /spec/factories/ci | |
parent | 364072b7d0232a5e306a305ca0bb40b03da5b630 (diff) |
Add specs for build status helper class
Diffstat (limited to 'spec/factories/ci')
-rw-r--r-- | spec/factories/ci/builds.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index c1b6ecd329a..46a211fa60e 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -16,6 +16,14 @@ FactoryGirl.define do commit factory: :ci_commit + trait :success do + status 'success' + end + + trait :failed do + status 'failed' + end + trait :canceled do status 'canceled' end |