BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
0e4c0e78
Commit
0e4c0e78
authored
Aug 23, 2016
by
Katarzyna Kobierska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubocop tests
parent
895ca3a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
lint.rb
lib/ci/api/lint.rb
+1
-2
lint_spec.rb
spec/requests/ci/api/lint_spec.rb
+1
-1
No files found.
lib/ci/api/lint.rb
View file @
0e4c0e78
...
...
@@ -4,7 +4,6 @@ module Ci
before
{
authenticate!
}
resources
:lint
do
post
do
begin
response
=
{}
...
...
@@ -20,7 +19,7 @@ module Ci
status:
"syntax is correct"
}
stage_builds
=
@stages
.
each
do
|
stage
|
@stages
.
each
do
|
stage
|
response
[
"
#{
stage
}
"
]
=
@builds
.
select
{
|
build
|
build
[
:stage
]
==
stage
}
end
else
...
...
spec/requests/ci/api/lint_spec.rb
View file @
0e4c0e78
...
...
@@ -31,7 +31,7 @@ describe Ci::API::API do
context
"with invalid .gitlab_ci.yml content"
do
it
"validate content"
do
post
ci_api
(
'/lint'
),
{
private_token:
user
.
private_token
,
content:
'invalid content'
}
post
ci_api
(
'/lint'
),
{
private_token:
user
.
private_token
,
content:
'invalid content'
}
expect
(
response
).
to
have_http_status
(
500
)
expect
(
json_response
[
'status'
]).
to
eq
(
'syntax is incorrect'
)
...
...
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