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
2e90abf2
Commit
2e90abf2
authored
Jul 15, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
It could be redirecting or downloading in Rails or API
parent
e96401f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
builds_spec.rb
spec/requests/api/builds_spec.rb
+1
-1
artifacts_controller_spec.rb
spec/requests/projects/artifacts_controller_spec.rb
+1
-1
artifacts_context.rb
spec/requests/shared/artifacts_context.rb
+6
-6
No files found.
spec/requests/api/builds_spec.rb
View file @
2e90abf2
...
...
@@ -227,7 +227,7 @@ describe API::API, api: true do
expect
(
response
.
headers
).
to
include
(
download_headers
)
end
it_behaves_like
'artifacts from ref
with 302
'
it_behaves_like
'artifacts from ref
successfully
'
end
end
...
...
spec/requests/projects/artifacts_controller_spec.rb
View file @
2e90abf2
...
...
@@ -45,7 +45,7 @@ describe Projects::ArtifactsController do
expect
(
response
).
to
redirect_to
(
path
)
end
it_behaves_like
'artifacts from ref
with 302
'
it_behaves_like
'artifacts from ref
successfully
'
end
end
end
spec/requests/shared/artifacts_context.rb
View file @
2e90abf2
...
...
@@ -29,13 +29,13 @@ shared_examples 'artifacts from ref with 404' do
end
end
shared_examples
'artifacts from ref
with 302
'
do
shared_examples
'artifacts from ref
successfully
'
do
context
'with sha'
do
before
do
get
path_from_ref
end
it
(
'
redirects
'
)
{
verify
}
it
(
'
gives the file
'
)
{
verify
}
end
context
'with regular branch'
do
...
...
@@ -47,7 +47,7 @@ shared_examples 'artifacts from ref with 302' do
get
path_from_ref
(
'master'
)
end
it
(
'
redirects
'
)
{
verify
}
it
(
'
gives the file
'
)
{
verify
}
end
context
'with branch name containing slash'
do
...
...
@@ -59,7 +59,7 @@ shared_examples 'artifacts from ref with 302' do
get
path_from_ref
(
'improve/awesome'
)
end
it
(
'
redirects
'
)
{
verify
}
it
(
'
gives the file
'
)
{
verify
}
end
context
'with latest build'
do
...
...
@@ -73,7 +73,7 @@ shared_examples 'artifacts from ref with 302' do
get
path_from_ref
end
it
(
'
redirects
'
)
{
verify
}
it
(
'
gives the file
'
)
{
verify
}
end
context
'with success build'
do
...
...
@@ -86,6 +86,6 @@ shared_examples 'artifacts from ref with 302' do
get
path_from_ref
end
it
(
'
redirects
'
)
{
verify
}
it
(
'
gives the file
'
)
{
verify
}
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