diff options
Diffstat (limited to 'spec/lib/gitlab/ci/interpolation/context_spec.rb')
-rw-r--r-- | spec/lib/gitlab/ci/interpolation/context_spec.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/lib/gitlab/ci/interpolation/context_spec.rb b/spec/lib/gitlab/ci/interpolation/context_spec.rb deleted file mode 100644 index 2b126f4a8b3..00000000000 --- a/spec/lib/gitlab/ci/interpolation/context_spec.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -require 'fast_spec_helper' - -RSpec.describe Gitlab::Ci::Interpolation::Context, feature_category: :pipeline_composition do - subject { described_class.new(ctx) } - - let(:ctx) do - { inputs: { key: 'abc' } } - end - - describe '#depth' do - it 'returns a max depth of the hash' do - expect(subject.depth).to eq 2 - end - end - - context 'when interpolation context is too complex' do - let(:ctx) do - { inputs: { key: { aaa: { bbb: 'ccc' } } } } - end - - it 'raises an exception' do - expect { described_class.new(ctx) } - .to raise_error(described_class::ContextTooComplexError) - end - end -end |