diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-01-13 19:57:23 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-01-13 19:57:23 +0100 |
commit | 3b7f34281e4d1c4ca626578ddc9a1b9eda7e7538 (patch) | |
tree | 1cef992e85e7b59f49545021d0b594380924931f /spec/factories | |
parent | d338087605791e408e696b11974995be9ebff80e (diff) | |
download | gitlab-ce-3b7f34281e4d1c4ca626578ddc9a1b9eda7e7538.tar.gz |
Modify :ci_variable factory
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/ci/variables.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/spec/factories/ci/variables.rb b/spec/factories/ci/variables.rb index a19b9fc72f2..8f62d64411b 100644 --- a/spec/factories/ci/variables.rb +++ b/spec/factories/ci/variables.rb @@ -16,10 +16,7 @@ FactoryGirl.define do factory :ci_variable, class: Ci::Variable do - id 10 - key 'TEST_VARIABLE_1' - value 'VALUE_1' - - project factory: :empty_project + sequence(:key) { |n| "VARIABLE_#{n}" } + value 'VARIABLE_VALUE' end end |