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
Tatuya Kamada
gitlab-ce
Commits
72bf6a47
Commit
72bf6a47
authored
Oct 07, 2013
by
Izaak Alpert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove file compairson
Change-Id: Id2cae87c8cd383bc6cbcbdecf0f77c161bb82eab
parent
7cad12f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
spec/requests/api/repositories_spec.rb
spec/requests/api/repositories_spec.rb
+0
-8
No files found.
spec/requests/api/repositories_spec.rb
View file @
72bf6a47
...
@@ -230,14 +230,6 @@ describe API::API do
...
@@ -230,14 +230,6 @@ describe API::API do
get
api
(
"/projects/
#{
project
.
id
}
/repository/archive"
,
user
)
get
api
(
"/projects/
#{
project
.
id
}
/repository/archive"
,
user
)
response
.
status
.
should
==
200
response
.
status
.
should
==
200
response
.
content_type
.
should
==
'application/x-gzip'
response
.
content_type
.
should
==
'application/x-gzip'
storage_path
=
Rails
.
root
.
join
(
"tmp"
,
"repositories"
)
file_path
=
project
.
repository
.
archive_repo
(
nil
,
storage_path
)
file_path_compare
=
file_path
+
'compare'
File
.
open
(
file_path_compare
,
'wb'
){
|
f
|
f
.
write
(
response
.
body
)}
FileUtils
.
compare_file
(
file_path
,
file_path_compare
).
should
be_true
#cleanup
File
.
delete
(
file_path
)
File
.
delete
(
file_path_compare
)
end
end
it
"should return 404 for invalid sha"
do
it
"should return 404 for invalid sha"
do
...
...
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