From c0ced77fb12ecb39bfd680f842fead31cd349831 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Wed, 10 Aug 2016 11:56:25 -0400 Subject: remove Reader --- spec/zip_spec.cr | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'spec') diff --git a/spec/zip_spec.cr b/spec/zip_spec.cr index 7e66518..c80aabe 100644 --- a/spec/zip_spec.cr +++ b/spec/zip_spec.cr @@ -9,9 +9,11 @@ describe Zip do it "works" do Zip::VERSION.should eq(Zip::VERSION) end -end -describe Zip::Writer do + ############### + # write tests # + ############### + it "creates an empty archive" do Zip.write(File.join(TEST_DIR, "test-empty.zip")) do |zip| # do nothing @@ -53,9 +55,11 @@ describe Zip::Writer do zip.add_file("test.cr", TEST_FILE_PATH) end end -end -describe Zip::Reader do + ############## + # read tests # + ############## + it "reads an archive" do Zip.read(File.join(TEST_DIR, "test-string.zip")) do |zip| zip.entries.each do |e| -- cgit v1.2.3