summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-11-19 01:02:49 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-11-19 01:02:49 +0800
commitb6a7a4783435a7fa34f26dbf3b16ab8e7ed21b88 (patch)
treeea414e11405c902f58089f307e3b40f6ec34398b /spec/factories
parent100076ecbbdf3eae361a6356ddfb55b1694e4741 (diff)
downloadgitlab-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.rb4
-rw-r--r--spec/factories/commit_statuses.rb4
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