Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/ci/config/interpolation/context_spec.rb')
-rw-r--r--spec/lib/gitlab/ci/config/interpolation/context_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/config/interpolation/context_spec.rb b/spec/lib/gitlab/ci/config/interpolation/context_spec.rb
index c90866c986a..56a572312eb 100644
--- a/spec/lib/gitlab/ci/config/interpolation/context_spec.rb
+++ b/spec/lib/gitlab/ci/config/interpolation/context_spec.rb
@@ -17,6 +17,12 @@ RSpec.describe Gitlab::Ci::Config::Interpolation::Context, feature_category: :pi
end
end
+ describe '.new' do
+ it 'returns variables as a Variables::Collection object' do
+ expect(subject.variables.class).to eq(Gitlab::Ci::Variables::Collection)
+ end
+ end
+
describe '#to_h' do
it 'returns the context hash' do
expect(subject.to_h).to eq(ctx)