summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-05-25 18:05:27 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-05-25 18:05:27 +0800
commit9f6dc8b2b5fe3d4790d67f13660eb8bfabd4dbca (patch)
tree7e42628528d55a4075bbc845f5ecfa282badfc19 /spec/factories
parent96956d47ef94dd69537105dfe67e3c5e74f3a1e6 (diff)
downloadgitlab-ce-9f6dc8b2b5fe3d4790d67f13660eb8bfabd4dbca.tar.gz
Add tests and also pass protected vars to protected tags
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/ci/variables.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/ci/variables.rb b/spec/factories/ci/variables.rb
index c5fba597c1c..f83366136fd 100644
--- a/spec/factories/ci/variables.rb
+++ b/spec/factories/ci/variables.rb
@@ -3,6 +3,10 @@ FactoryGirl.define do
sequence(:key) { |n| "VARIABLE_#{n}" }
value 'VARIABLE_VALUE'
+ trait(:protected) do
+ protected true
+ end
+
project factory: :empty_project
end
end