summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/ci/yaml_processor_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-12 03:10:11 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-12 03:10:11 +0000
commite6de69cc2eae87536ed97df4dee36980583010f5 (patch)
tree453e41dd20186d8b7a0ccd6e1161a54d496deae3 /spec/lib/gitlab/ci/yaml_processor_spec.rb
parentd9e285a74bf01b1a61108a8091a88579361ef189 (diff)
downloadgitlab-ce-e6de69cc2eae87536ed97df4dee36980583010f5.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/ci/yaml_processor_spec.rb')
-rw-r--r--spec/lib/gitlab/ci/yaml_processor_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/yaml_processor_spec.rb b/spec/lib/gitlab/ci/yaml_processor_spec.rb
index 8bb5f58279b..dc443c5a1c1 100644
--- a/spec/lib/gitlab/ci/yaml_processor_spec.rb
+++ b/spec/lib/gitlab/ci/yaml_processor_spec.rb
@@ -1152,6 +1152,10 @@ module Gitlab
end
it { is_expected.to be_valid }
+
+ it 'adds the job from the included file' do
+ expect(subject.builds.map { |build| build[:name] }).to contain_exactly('job1', 'rspec')
+ end
end
context "when the included internal file is not present" do