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 | |
parent | cbefdf8beaf3d64a44e74428079502badef60834 (diff) | |
download | zip-crystal-d188b195199e70f087d104040fd5ec5355966334.tar.bz2 zip-crystal-d188b195199e70f087d104040fd5ec5355966334.zip |
add initial spec, compile fixes
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec_helper.cr | 2 | ||||
-rw-r--r-- | spec/zip-crystal_spec.cr | 9 | ||||
-rw-r--r-- | spec/zip_spec.cr | 15 |
3 files changed, 16 insertions, 10 deletions
diff --git a/spec/spec_helper.cr b/spec/spec_helper.cr index 78a7a10..3e86b5e 100644 --- a/spec/spec_helper.cr +++ b/spec/spec_helper.cr @@ -1,2 +1,2 @@ require "spec" -require "../src/zip-crystal" +require "../src/zip" diff --git a/spec/zip-crystal_spec.cr b/spec/zip-crystal_spec.cr deleted file mode 100644 index 910b8f4..0000000 --- a/spec/zip-crystal_spec.cr +++ /dev/null @@ -1,9 +0,0 @@ -require "./spec_helper" - -describe Zip::Crystal do - # TODO: Write tests - - it "works" do - false.should eq(true) - end -end 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 |