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>2015-12-31 17:19:13 +0300
committerTomasz Maczukin <tomasz@maczukin.pl>2015-12-31 18:26:54 +0300
commitea4777ff501e370a39ae30e76a955136afe3c1fa (patch)
tree51edc60d0f03ec2fa2dd9dbb802182cc73c9c6a6 /spec/factories/ci
parent2c1f8e2d157554b12845ee7ecea1abff10dcf7cb (diff)
Add features for list and show details of variables in API
Diffstat (limited to 'spec/factories/ci')
-rw-r--r--spec/factories/ci/variables.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/factories/ci/variables.rb b/spec/factories/ci/variables.rb
new file mode 100644
index 00000000000..c3dcb678da7
--- /dev/null
+++ b/spec/factories/ci/variables.rb
@@ -0,0 +1,25 @@
+# == 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
+#
+
+# Read about factories at https://github.com/thoughtbot/factory_girl
+
+FactoryGirl.define do
+ factory :ci_variable, class: Ci::Variable do
+ id 1
+ key 'TEST_VARIABLE_1'
+ value 'VALUE_1'
+
+ project factory: :empty_project
+ end
+end