summaryrefslogtreecommitdiff
path: root/spec/factories/ci/variables.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/ci/variables.rb')
-rw-r--r--spec/factories/ci/variables.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/factories/ci/variables.rb b/spec/factories/ci/variables.rb
new file mode 100644
index 00000000000..856a8e725eb
--- /dev/null
+++ b/spec/factories/ci/variables.rb
@@ -0,0 +1,20 @@
+# == Schema Information
+#
+# Table name: ci_variables
+#
+# id :integer not null, primary key
+# project_id :integer not null
+# key :string(255)
+# value :text
+# encrypted_value :text
+# encrypted_value_salt :string(255)
+# encrypted_value_iv :string(255)
+# gl_project_id :integer
+#
+
+FactoryGirl.define do
+ factory :ci_variable, class: Ci::Variable do
+ sequence(:key) { |n| "VARIABLE_#{n}" }
+ value 'VARIABLE_VALUE'
+ end
+end