Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-22 11:01:11 +0300
committerShinya Maeda <shinya@gitlab.com>2017-09-03 17:49:10 +0300
commitbbe967abeba7be1db79e34439e74cd113c240b52 (patch)
treeb498f626149dc0e8ed541352fa9080e10a99fb34 /spec/factories/ci/builds.rb
parenteda34b1a1846a5d5b55cc127a32b0c7628580f25 (diff)
Add the rest of specs
Diffstat (limited to 'spec/factories/ci/builds.rb')
-rw-r--r--spec/factories/ci/builds.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb
index 5bba1dec7db..f8922275860 100644
--- a/spec/factories/ci/builds.rb
+++ b/spec/factories/ci/builds.rb
@@ -226,5 +226,13 @@ FactoryGirl.define do
status 'created'
self.when 'manual'
end
+
+ trait(:protected) do
+ protected true
+ end
+
+ trait(:unprotected) do
+ protected false
+ end
end
end