diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-11-19 01:02:49 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-11-19 01:02:49 +0800 |
commit | b6a7a4783435a7fa34f26dbf3b16ab8e7ed21b88 (patch) | |
tree | ea414e11405c902f58089f307e3b40f6ec34398b /spec/factories | |
parent | 100076ecbbdf3eae361a6356ddfb55b1694e4741 (diff) | |
download | gitlab-ce-b6a7a4783435a7fa34f26dbf3b16ab8e7ed21b88.tar.gz |
Add a lot of tests for scopes, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7508#note_18622499
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/ci/builds.rb | 4 | ||||
-rw-r--r-- | spec/factories/commit_statuses.rb | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index 0c93bbdfe26..e7fe489e5eb 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -38,6 +38,10 @@ FactoryGirl.define do status 'canceled' end + trait :skipped do + status 'skipped' + end + trait :running do status 'running' end diff --git a/spec/factories/commit_statuses.rb b/spec/factories/commit_statuses.rb index 995f2080f10..756b341ecba 100644 --- a/spec/factories/commit_statuses.rb +++ b/spec/factories/commit_statuses.rb @@ -19,6 +19,10 @@ FactoryGirl.define do status 'canceled' end + trait :skipped do + status 'skipped' + end + trait :running do status 'running' end |