summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-06-28 18:52:09 +0900
committerShinya Maeda <shinya@gitlab.com>2017-06-28 18:52:09 +0900
commitc59332245fc6d688671f63fe748365d792d03994 (patch)
treeb85aa44027e772e6e2ac75d82d8559cbe87b52b1
parentfbedecf3a9024330afda62a37c7af78b59a863e8 (diff)
downloadgitlab-ce-c59332245fc6d688671f63fe748365d792d03994.tar.gz
Add missing file
-rw-r--r--spec/factories/ci/project_variables.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/factories/ci/project_variables.rb b/spec/factories/ci/project_variables.rb
new file mode 100644
index 00000000000..b5bd11a0994
--- /dev/null
+++ b/spec/factories/ci/project_variables.rb
@@ -0,0 +1,11 @@
+FactoryGirl.define do
+ factory :ci_project_variable, class: Ci::ProjectVariable do
+ sequence(:key) { |n| "VARIABLE_#{n}" }
+ value 'VARIABLE_VALUE'
+ project factory: :empty_project
+
+ trait(:protected) do
+ protected true
+ end
+ end
+end