aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/zip_spec.cr12
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|