summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/zip_spec.cr13
1 files changed, 8 insertions, 5 deletions
diff --git a/spec/zip_spec.cr b/spec/zip_spec.cr
index 01a98ff..0ca4e86 100644
--- a/spec/zip_spec.cr
+++ b/spec/zip_spec.cr
@@ -91,12 +91,15 @@ describe Zip do
it "reads all an archive's compressed entries" do
Zip.read(File.join(TEST_DIR, "test-many.zip")) do |zip|
zip.each do |e|
- pp e.path
- io = MemoryIO.new
- # e.write(STDOUT)
- e.write(io)
- io.close
+ if e.dir?
+ puts "#{e.path} is a directory"
+ else
+ io = MemoryIO.new
+ # e.write(STDOUT)
+ e.write(io)
+ io.close
+ end
end
end
end