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
0aebc829
Commit
0aebc829
authored
Apr 05, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct typo in pipelines_spec.rb
parent
41d06465
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/requests/api/pipelines_spec.rb
spec/requests/api/pipelines_spec.rb
+5
-5
No files found.
spec/requests/api/pipelines_spec.rb
View file @
0aebc829
...
...
@@ -88,7 +88,7 @@ describe API::Pipelines do
end
context
'when scope is invalid'
do
it
'returns
400
'
do
it
'returns
bad_request
'
do
get
api
(
"/projects/
#{
project
.
id
}
/pipelines"
,
user
),
scope:
'invalid-scope'
expect
(
response
).
to
have_http_status
(
:bad_request
)
...
...
@@ -115,7 +115,7 @@ describe API::Pipelines do
end
context
'when status is invalid'
do
it
'returns
:
bad_request'
do
it
'returns bad_request'
do
get
api
(
"/projects/
#{
project
.
id
}
/pipelines"
,
user
),
status:
'invalid-status'
expect
(
response
).
to
have_http_status
(
:bad_request
)
...
...
@@ -222,7 +222,7 @@ describe API::Pipelines do
end
context
'when yaml_errors is invalid'
do
it
'returns
:
bad_request'
do
it
'returns bad_request'
do
get
api
(
"/projects/
#{
project
.
id
}
/pipelines"
,
user
),
yaml_errors:
'invalid-yaml_errors'
expect
(
response
).
to
have_http_status
(
:bad_request
)
...
...
@@ -246,7 +246,7 @@ describe API::Pipelines do
end
context
'when sort is invalid'
do
it
'
sorts as user_id: :desc
'
do
it
'
returns bad_request
'
do
get
api
(
"/projects/
#{
project
.
id
}
/pipelines"
,
user
),
order_by:
'user_id'
,
sort:
'invalid_sort'
expect
(
response
).
to
have_http_status
(
:bad_request
)
...
...
@@ -255,7 +255,7 @@ describe API::Pipelines do
end
context
'when order_by is invalid'
do
it
'returns
:
bad_request'
do
it
'returns bad_request'
do
get
api
(
"/projects/
#{
project
.
id
}
/pipelines"
,
user
),
order_by:
'lock_version'
,
sort:
'asc'
expect
(
response
).
to
have_http_status
(
:bad_request
)
...
...
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