From 07fd283f15d17a148bef6cc034fbe0de883630dc Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 18 Oct 2016 14:31:21 -0400 Subject: update version to 0.1.1 --- spec/zip_spec.cr | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/zip_spec.cr b/spec/zip_spec.cr index 7f539cc..8d58f25 100644 --- a/spec/zip_spec.cr +++ b/spec/zip_spec.cr @@ -93,7 +93,6 @@ describe Zip do puts "file has #{zip.size} entries" zip.each do |e| - if e.dir? puts "#{e.path} is a directory" else @@ -105,4 +104,18 @@ describe Zip do end end end + + it "reads jnl.zip" do + Zip.read(File.join(TEST_DIR, "jnl.zip")) do |zip| + puts "file has #{zip.size} entries" + + zip.each do |e| + if e.dir? + puts "#{e.path} is a directory" + else + puts "#{e.path} is a file" + end + end + end + end end -- cgit v1.2.3