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
3925436a
Commit
3925436a
authored
Jul 20, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use shared_examples, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5347#note_13173599
parent
cf78c357
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/requests/api/builds_spec.rb
spec/requests/api/builds_spec.rb
+4
-4
No files found.
spec/requests/api/builds_spec.rb
View file @
3925436a
...
...
@@ -191,8 +191,8 @@ describe API::API, api: true do
end
context
'non-existing build'
do
def
verify
expect
(
response
).
to
have_http_status
(
404
)
shared_examples
'not found'
do
it
{
expect
(
response
).
to
have_http_status
(
:not_found
)
}
end
context
'has no such ref'
do
...
...
@@ -200,7 +200,7 @@ describe API::API, api: true do
get
path_for_ref
(
'TAIL'
,
build
.
name
)
end
it
(
'gives 404'
)
{
verify
}
it
_behaves_like
'not found'
end
context
'has no such build'
do
...
...
@@ -208,7 +208,7 @@ describe API::API, api: true do
get
path_for_ref
(
pipeline
.
ref
,
'NOBUILD'
)
end
it
(
'gives 404'
)
{
verify
}
it
_behaves_like
'not found'
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