From 72bf6a47e038e277cbf42134169bcfa9a0edcf65 Mon Sep 17 00:00:00 2001 From: Izaak Alpert Date: Mon, 7 Oct 2013 16:14:13 -0400 Subject: [PATCH] Remove file compairson --- spec/requests/api/repositories_spec.rb | 8 -------- 1 file changed, 0 insertions(+), 8 deletions(-) diff --git a/spec/requests/api/repositories_spec.rb b/spec/requests/api/repositories_spec.rb index 2fcf6ba..9649c4d 100644 --- a/spec/requests/api/repositories_spec.rb +++ b/spec/requests/api/repositories_spec.rb @@ -230,14 +230,6 @@ describe API::API do get api("/projects/#{project.id}/repository/archive", user) response.status.should == 200 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 it "should return 404 for invalid sha" do -- libgit2 0.21.2