diff options
-rw-r--r-- | spec/lib/gitlab/ci/variables/collection/item_spec.rb | 7 |
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 |