Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
51727377
Commit
51727377
authored
Feb 28, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use squiggly heredoc to improve YAML processor specs
parent
52b34969
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
spec/lib/gitlab/ci/yaml_processor_spec.rb
spec/lib/gitlab/ci/yaml_processor_spec.rb
+25
-25
No files found.
spec/lib/gitlab/ci/yaml_processor_spec.rb
View file @
51727377
...
...
@@ -1344,13 +1344,13 @@ module Gitlab
context
'when template is a job'
do
let
(
:config
)
do
<<
EOT
job1: &JOBTMPL
stage: build
script: execute-script-for-job
<<
~
EOT
job1: &JOBTMPL
stage: build
script: execute-script-for-job
job2: *JOBTMPL
EOT
job2: *JOBTMPL
EOT
end
it_behaves_like
'job_templates_handling'
...
...
@@ -1358,15 +1358,15 @@ EOT
context
'when template is a hidden job'
do
let
(
:config
)
do
<<
EOT
.template: &JOBTMPL
stage: build
script: execute-script-for-job
<<
~
EOT
.template: &JOBTMPL
stage: build
script: execute-script-for-job
job1: *JOBTMPL
job1: *JOBTMPL
job2: *JOBTMPL
EOT
job2: *JOBTMPL
EOT
end
it_behaves_like
'job_templates_handling'
...
...
@@ -1374,18 +1374,18 @@ EOT
context
'when job adds its own keys to a template definition'
do
let
(
:config
)
do
<<
EOT
.template: &JOBTMPL
stage: build
job1:
<<: *JOBTMPL
script: execute-script-for-job
job2:
<<: *JOBTMPL
script: execute-script-for-job
EOT
<<
~
EOT
.template: &JOBTMPL
stage: build
job1:
<<: *JOBTMPL
script: execute-script-for-job
job2:
<<: *JOBTMPL
script: execute-script-for-job
EOT
end
it_behaves_like
'job_templates_handling'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment