diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-08-21 11:24:44 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-09-03 17:49:10 +0300 |
commit | eda34b1a1846a5d5b55cc127a32b0c7628580f25 (patch) | |
tree | f4400330322a6104e5f04356ac04e8eea56559cc /spec/factories/ci | |
parent | e1ef436d1fd6419ce8a08c4ac33bf664786c80b0 (diff) |
Add spec. Fix runner setting page. It worked.
Diffstat (limited to 'spec/factories/ci')
-rw-r--r-- | spec/factories/ci/runners.rb | 8 |
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 |