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:
authorTomasz Maczukin <tomasz@maczukin.pl>2018-10-18 16:21:40 +0300
committerTomasz Maczukin <tomasz@maczukin.pl>2018-10-22 17:29:09 +0300
commitaed0f088f5037e41bd40dc41d029937b71e3c87b (patch)
tree96f924280a4cfbce3c6dcff35f2869371a0eee46 /spec/factories/ci
parent019701ce9e0675e2727dcced84d4c406a1592f96 (diff)
Add tests for shared/runners/show.html.haml view
Diffstat (limited to 'spec/factories/ci')
-rw-r--r--spec/factories/ci/runners.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/ci/runners.rb b/spec/factories/ci/runners.rb
index f564e7bee47..24e70913b87 100644
--- a/spec/factories/ci/runners.rb
+++ b/spec/factories/ci/runners.rb
@@ -47,5 +47,15 @@ FactoryBot.define do
trait :ref_protected do
access_level :ref_protected
end
+
+ trait :tagged_only do
+ run_untagged false
+
+ tag_list %w(tag1 tag2)
+ end
+
+ trait :locked do
+ locked true
+ end
end
end