diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-08-06 11:56:41 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-08-06 11:56:41 -0400 |
commit | d188b195199e70f087d104040fd5ec5355966334 (patch) | |
tree | fed0ab7df1cfc5ab0cf5814c35a8e1621cb67d9d /spec/zip_spec.cr | |
parent | cbefdf8beaf3d64a44e74428079502badef60834 (diff) | |
download | zip-crystal-d188b195199e70f087d104040fd5ec5355966334.tar.bz2 zip-crystal-d188b195199e70f087d104040fd5ec5355966334.zip |
add initial spec, compile fixes
Diffstat (limited to 'spec/zip_spec.cr')
-rw-r--r-- | spec/zip_spec.cr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/zip_spec.cr b/spec/zip_spec.cr new file mode 100644 index 0000000..74066b7 --- /dev/null +++ b/spec/zip_spec.cr @@ -0,0 +1,15 @@ +require "./spec_helper" + +describe Zip do + # TODO: Write tests + + it "works" do + Zip::VERSION.should eq(Zip::VERSION) + end +end + +describe Zip::Writer do + Zip.write("test.zip") do |zip| + zip.add("foo.txt", MemoryIO.new("foo")) + end +end |