diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-08-10 11:56:25 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-08-10 11:56:25 -0400 |
commit | c0ced77fb12ecb39bfd680f842fead31cd349831 (patch) | |
tree | 9e02ac26bedd08a9ca73e29f8c7eba20fee22431 /spec | |
parent | 478b3581a1e7c3993b0e043b85414929e89a002c (diff) | |
download | zip-crystal-c0ced77fb12ecb39bfd680f842fead31cd349831.tar.bz2 zip-crystal-c0ced77fb12ecb39bfd680f842fead31cd349831.zip |
remove Reader
Diffstat (limited to 'spec')
-rw-r--r-- | spec/zip_spec.cr | 12 |
1 files changed, 8 insertions, 4 deletions
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| |