diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2015-12-31 15:19:13 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2015-12-31 16:26:54 +0100 |
commit | ea4777ff501e370a39ae30e76a955136afe3c1fa (patch) | |
tree | 51edc60d0f03ec2fa2dd9dbb802182cc73c9c6a6 /spec/factories/ci | |
parent | 2c1f8e2d157554b12845ee7ecea1abff10dcf7cb (diff) | |
download | gitlab-ce-ea4777ff501e370a39ae30e76a955136afe3c1fa.tar.gz |
Add features for list and show details of variables in API
Diffstat (limited to 'spec/factories/ci')
-rw-r--r-- | spec/factories/ci/variables.rb | 25 |
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 |