summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-03-14 10:02:01 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-03-14 10:02:01 +0100
commit077298817fe59b5e572b17a6ecd6ffb2c47fd9b5 (patch)
treeeda3806d4924b434bcb8039ca9b7a98b987446c2
parent1e811eb8ac464df77d831fe8af4580dd9f890b54 (diff)
downloadgitlab-ce-077298817fe59b5e572b17a6ecd6ffb2c47fd9b5.tar.gz
Fix variables collection item sequence specs
-rw-r--r--spec/lib/gitlab/ci/variables/collection/item_spec.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/lib/gitlab/ci/variables/collection/item_spec.rb b/spec/lib/gitlab/ci/variables/collection/item_spec.rb
index 37394c3e80f..cc1257484d2 100644
--- a/spec/lib/gitlab/ci/variables/collection/item_spec.rb
+++ b/spec/lib/gitlab/ci/variables/collection/item_spec.rb
@@ -14,12 +14,11 @@ describe Gitlab::Ci::Variables::Collection::Item do
end
it 'supports using an active record resource' do
- resource = described_class.fabricate(create(:ci_variable))
+ variable = create(:ci_variable, key: 'CI_VAR', value: '123')
+ resource = described_class.fabricate(variable)
expect(resource).to be_a(described_class)
- expect(resource).to eq(key: 'VARIABLE_1',
- value: 'VARIABLE_VALUE',
- public: false)
+ expect(resource).to eq(key: 'CI_VAR', value: '123', public: false)
end
it 'supports using another collection item' do