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
ae83ac99
Commit
ae83ac99
authored
Jul 20, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
path_from_ref -> path_for_ref, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5347/diffs#note_13173404
parent
6da27aa6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
builds_spec.rb
spec/requests/api/builds_spec.rb
+8
-8
No files found.
spec/requests/api/builds_spec.rb
View file @
ae83ac99
...
...
@@ -201,7 +201,7 @@ describe API::API, api: true do
project
.
team
<<
[
user
,
:developer
]
end
def
path_f
rom
_ref
(
ref
=
pipeline
.
ref
,
job
=
build
.
name
)
def
path_f
or
_ref
(
ref
=
pipeline
.
ref
,
job
=
build
.
name
)
api
(
"/projects/
#{
project
.
id
}
/builds/artifacts/
#{
ref
}
/download?job=
#{
job
}
"
,
user
)
end
...
...
@@ -209,7 +209,7 @@ describe API::API, api: true do
let
(
:user
)
{
nil
}
before
do
get
path_f
rom
_ref
get
path_f
or
_ref
end
it
{
expect
(
response
).
to
have_http_status
(
401
)
}
...
...
@@ -222,7 +222,7 @@ describe API::API, api: true do
context
'has no such ref'
do
before
do
get
path_f
rom
_ref
(
'TAIL'
,
build
.
name
)
get
path_f
or
_ref
(
'TAIL'
,
build
.
name
)
end
it
(
'gives 404'
)
{
verify
}
...
...
@@ -230,7 +230,7 @@ describe API::API, api: true do
context
'has no such build'
do
before
do
get
path_f
rom
_ref
(
pipeline
.
ref
,
'NOBUILD'
)
get
path_f
or
_ref
(
pipeline
.
ref
,
'NOBUILD'
)
end
it
(
'gives 404'
)
{
verify
}
...
...
@@ -260,7 +260,7 @@ describe API::API, api: true do
end
before
do
get
path_f
rom
_ref
(
'master'
)
get
path_f
or
_ref
(
'master'
)
end
it
(
'gives the file'
)
{
verify
}
...
...
@@ -273,7 +273,7 @@ describe API::API, api: true do
end
before
do
get
path_f
rom
_ref
(
'improve/awesome'
)
get
path_f
or
_ref
(
'improve/awesome'
)
end
it
(
'gives the file'
)
{
verify
}
...
...
@@ -287,7 +287,7 @@ describe API::API, api: true do
end
before
do
get
path_f
rom
_ref
get
path_f
or
_ref
end
it
(
'gives the file'
)
{
verify
}
...
...
@@ -300,7 +300,7 @@ describe API::API, api: true do
end
before
do
get
path_f
rom
_ref
get
path_f
or
_ref
end
it
(
'gives the file'
)
{
verify
}
...
...
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