diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
commit | db384e6b19af03b4c3c82a5760d83a3fd79f7982 (patch) | |
tree | 34beaef37df5f47ccbcf5729d7583aae093cffa0 /spec/lib/gitlab/ci/interpolation/context_spec.rb | |
parent | 54fd7b1bad233e3944434da91d257fa7f63c3996 (diff) |
Add latest changes from gitlab-org/gitlab@16-3-stable-eev16.3.0-rc42
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 |