diff options
author | Izaak Alpert <ialpert@blackberry.com> | 2013-10-07 16:14:13 -0400 |
---|---|---|
committer | Izaak Alpert <ialpert@blackberry.com> | 2013-10-10 09:19:28 -0400 |
commit | 72bf6a47e038e277cbf42134169bcfa9a0edcf65 (patch) | |
tree | 813c6cf9eabbdb134ba0878fe3649b0873c310c6 /spec/requests/api | |
parent | 7cad12f77f223e72a05a3cf79a793b69dd9c0b87 (diff) | |
download | gitlab-ce-72bf6a47e038e277cbf42134169bcfa9a0edcf65.tar.gz |
Remove file compairson
Change-Id: Id2cae87c8cd383bc6cbcbdecf0f77c161bb82eab
Diffstat (limited to 'spec/requests/api')
-rw-r--r-- | spec/requests/api/repositories_spec.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/requests/api/repositories_spec.rb b/spec/requests/api/repositories_spec.rb index 2fcf6ba27b8..9649c4d09c8 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 |