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
381ca79b
Commit
381ca79b
authored
9 years ago
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove archive file sending spec
This is done by gitlab-git-http-server now.
parent
8f143326
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
28 deletions
+0
-28
spec/controllers/projects/repositories_controller_spec.rb
spec/controllers/projects/repositories_controller_spec.rb
+0
-28
No files found.
spec/controllers/projects/repositories_controller_spec.rb
View file @
381ca79b
...
...
@@ -33,33 +33,5 @@ describe Projects::RepositoriesController do
expect
(
response
.
status
).
to
eq
(
404
)
end
end
context
"when the service doesn't return a path"
do
before
do
allow
(
service
).
to
receive
(
:execute
).
and_return
(
nil
)
end
it
"reloads the page"
do
get
:archive
,
namespace_id:
project
.
namespace
.
path
,
project_id:
project
.
path
,
ref:
"master"
,
format:
"zip"
expect
(
response
).
to
redirect_to
(
archive_namespace_project_repository_path
(
project
.
namespace
,
project
,
ref:
"master"
,
format:
"zip"
))
end
end
context
"when the service returns a path"
do
let
(
:path
)
{
Rails
.
root
.
join
(
"spec/fixtures/dk.png"
).
to_s
}
before
do
allow
(
service
).
to
receive
(
:execute
).
and_return
(
path
)
end
it
"sends the file"
do
get
:archive
,
namespace_id:
project
.
namespace
.
path
,
project_id:
project
.
path
,
ref:
"master"
,
format:
"zip"
expect
(
response
.
body
).
to
eq
(
File
.
binread
(
path
))
end
end
end
end
This diff is collapsed.
Click to expand it.
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