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