Commit 07729881 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix variables collection item sequence specs

parent 1e811eb8
...@@ -14,12 +14,11 @@ describe Gitlab::Ci::Variables::Collection::Item do ...@@ -14,12 +14,11 @@ describe Gitlab::Ci::Variables::Collection::Item do
end end
it 'supports using an active record resource' do 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 be_a(described_class)
expect(resource).to eq(key: 'VARIABLE_1', expect(resource).to eq(key: 'CI_VAR', value: '123', public: false)
value: 'VARIABLE_VALUE',
public: false)
end end
it 'supports using another collection item' do it 'supports using another collection item' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment