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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-07-20 15:07:25 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-20 15:07:25 +0300
commit07b1e2691206717206d40f9c7f0abfd1a30ecbdd (patch)
treea5b6b9655d73f158c22ecc70bcb65535226fd4ac /spec/lib/gitlab/ci/config/yaml/result_spec.rb
parent65a0673d76bb86d6acca6dc3ab42dc91a04f56c2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/ci/config/yaml/result_spec.rb')
-rw-r--r--spec/lib/gitlab/ci/config/yaml/result_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/config/yaml/result_spec.rb b/spec/lib/gitlab/ci/config/yaml/result_spec.rb
index d17e0609ef6..a66c630dfc9 100644
--- a/spec/lib/gitlab/ci/config/yaml/result_spec.rb
+++ b/spec/lib/gitlab/ci/config/yaml/result_spec.rb
@@ -51,4 +51,14 @@ RSpec.describe Gitlab::Ci::Config::Yaml::Result, feature_category: :pipeline_com
expect(result).not_to be_valid
expect(result.error).to be_a ArgumentError
end
+
+ describe '#interpolated?' do
+ it 'defaults to false' do
+ expect(described_class.new).not_to be_interpolated
+ end
+
+ it 'returns the value passed to the initializer' do
+ expect(described_class.new(interpolated: true)).to be_interpolated
+ end
+ end
end