Commit 88086559 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add test case describing circular dependency in `extends`

parent d5eff685
......@@ -185,5 +185,16 @@ describe Gitlab::Ci::Config::Extendable::Entry do
expect(hash).to eq original
end
end
context 'when circular depenency gets detected' do
let(:hash) do
{ test: { extends: 'test' } }
end
it 'raises an error' do
expect { subject.extend! }
.to raise_error(StandardError, /Circular dependency detected/)
end
end
end
end
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