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
1c36766f
Commit
1c36766f
authored
Feb 07, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update style of yaml_processor_spec.rb
parent
66d41d2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
spec/lib/gitlab/ci/yaml_processor_spec.rb
spec/lib/gitlab/ci/yaml_processor_spec.rb
+7
-2
No files found.
spec/lib/gitlab/ci/yaml_processor_spec.rb
View file @
1c36766f
...
@@ -1394,11 +1394,15 @@ EOT
...
@@ -1394,11 +1394,15 @@ EOT
describe
"Error handling"
do
describe
"Error handling"
do
it
"fails to parse YAML"
do
it
"fails to parse YAML"
do
expect
{
Gitlab
::
Ci
::
YamlProcessor
.
new
(
"invalid: yaml: test"
)}.
to
raise_error
(
Gitlab
::
Ci
::
YamlProcessor
::
ValidationError
)
expect
do
Gitlab
::
Ci
::
YamlProcessor
.
new
(
"invalid: yaml: test"
)
end
.
to
raise_error
(
Gitlab
::
Ci
::
YamlProcessor
::
ValidationError
)
end
end
it
"indicates that object is invalid"
do
it
"indicates that object is invalid"
do
expect
{
Gitlab
::
Ci
::
YamlProcessor
.
new
(
"invalid_yaml"
)}.
to
raise_error
(
Gitlab
::
Ci
::
YamlProcessor
::
ValidationError
)
expect
do
Gitlab
::
Ci
::
YamlProcessor
.
new
(
"invalid_yaml"
)
end
.
to
raise_error
(
Gitlab
::
Ci
::
YamlProcessor
::
ValidationError
)
end
end
it
"returns errors if tags parameter is invalid"
do
it
"returns errors if tags parameter is invalid"
do
...
@@ -1704,6 +1708,7 @@ EOT
...
@@ -1704,6 +1708,7 @@ EOT
context
"when YAML content is empty"
do
context
"when YAML content is empty"
do
let
(
:content
)
{
''
}
let
(
:content
)
{
''
}
it
{
is_expected
.
to
eq
"Please provide content of .gitlab-ci.yml"
}
it
{
is_expected
.
to
eq
"Please provide content of .gitlab-ci.yml"
}
end
end
...
...
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