From d188b195199e70f087d104040fd5ec5355966334 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 6 Aug 2016 11:56:41 -0400 Subject: add initial spec, compile fixes --- spec/spec_helper.cr | 2 +- spec/zip-crystal_spec.cr | 9 --------- spec/zip_spec.cr | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 10 deletions(-) delete mode 100644 spec/zip-crystal_spec.cr create mode 100644 spec/zip_spec.cr (limited to 'spec') 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 -- cgit v1.2.3