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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
e5d491d1
Commit
e5d491d1
authored
Dec 31, 2018
by
Paul B
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: adding a failing unit test
parent
cd1a907b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
spec/lib/gitlab/ci/yaml_processor_spec.rb
spec/lib/gitlab/ci/yaml_processor_spec.rb
+9
-0
No files found.
spec/lib/gitlab/ci/yaml_processor_spec.rb
View file @
e5d491d1
...
...
@@ -602,6 +602,15 @@ module Gitlab
end
end
describe
"Include"
do
it
"does not return any error with a valid configuration"
do
config
=
YAML
.
dump
({
include:
"/local.gitlab-ci.yml"
})
expect
do
Gitlab
::
Ci
::
YamlProcessor
.
new
(
config
)
end
.
not_to
raise_error
(
Gitlab
::
Ci
::
YamlProcessor
::
ValidationError
)
end
end
describe
"When"
do
%w(on_success on_failure always)
.
each
do
|
when_state
|
it
"returns
#{
when_state
}
when defined"
do
...
...
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