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-21 11:24:44 +0300
committerShinya Maeda <shinya@gitlab.com>2017-09-03 17:49:10 +0300
commiteda34b1a1846a5d5b55cc127a32b0c7628580f25 (patch)
treef4400330322a6104e5f04356ac04e8eea56559cc /spec/factories/ci
parente1ef436d1fd6419ce8a08c4ac33bf664786c80b0 (diff)
Add spec. Fix runner setting page. It worked.
Diffstat (limited to 'spec/factories/ci')
-rw-r--r--spec/factories/ci/runners.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/ci/runners.rb b/spec/factories/ci/runners.rb
index 05abf60d5ce..3a7da2e47d0 100644
--- a/spec/factories/ci/runners.rb
+++ b/spec/factories/ci/runners.rb
@@ -21,5 +21,13 @@ FactoryGirl.define do
trait :inactive do
active false
end
+
+ trait :protected do
+ access_level Ci::Runner.access_levels['protected_']
+ end
+
+ trait :unprotected do
+ access_level Ci::Runner.access_levels['unprotected']
+ end
end
end