diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-17 02:48:51 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-18 15:46:20 +0300 |
commit | e00da96c88314df79600e7848ae6fe7e4a29af2e (patch) | |
tree | 48d3da01b161442812fb83939f4cbeafdf9be7e3 /spec/factories | |
parent | 3248c9fb56e5d5cb8980cb37effec1ee2f4f664a (diff) |
Improve manual actions code and add model, service and feature tests
Manual actions are accessible from:
- Pipelines
- Builds
- Environments
- Deployments
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/ci/builds.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index 5fb671df570..fb111889501 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -43,6 +43,11 @@ FactoryGirl.define do status 'pending' end + trait :manual do + status 'skipped' + self.when 'manual' + end + trait :allowed_to_fail do allow_failure true end |