Commit 72bf6a47e038e277cbf42134169bcfa9a0edcf65
1 parent
7cad12f7
Exists in
master
and in
4 other branches
Remove file compairson
Change-Id: Id2cae87c8cd383bc6cbcbdecf0f77c161bb82eab
Showing
1 changed file
with
0 additions
and
8 deletions
Show diff stats
spec/requests/api/repositories_spec.rb
... | ... | @@ -230,14 +230,6 @@ describe API::API do |
230 | 230 | get api("/projects/#{project.id}/repository/archive", user) |
231 | 231 | response.status.should == 200 |
232 | 232 | response.content_type.should == 'application/x-gzip' |
233 | - storage_path = Rails.root.join("tmp", "repositories") | |
234 | - file_path = project.repository.archive_repo(nil, storage_path) | |
235 | - file_path_compare = file_path + 'compare' | |
236 | - File.open(file_path_compare,'wb'){|f|f.write(response.body)} | |
237 | - FileUtils.compare_file(file_path, file_path_compare).should be_true | |
238 | - #cleanup | |
239 | - File.delete(file_path) | |
240 | - File.delete(file_path_compare) | |
241 | 233 | end |
242 | 234 | |
243 | 235 | it "should return 404 for invalid sha" do | ... | ... |