aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-08-07 15:29:32 -0400
committerPaul Duncan <pabs@pablotron.org>2016-08-07 15:29:32 -0400
commit245c7f24f634918afea66d2eb17d88e4afeeb086 (patch)
treeb5232b7176d85101accce852ddd3274a12c9219b /spec
parenta96f5676302128563b355af2d0df894dbe1e1341 (diff)
downloadzip-crystal-245c7f24f634918afea66d2eb17d88e4afeeb086.tar.bz2
zip-crystal-245c7f24f634918afea66d2eb17d88e4afeeb086.zip
use larger test input file
Diffstat (limited to 'spec')
-rw-r--r--spec/zip_spec.cr6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/zip_spec.cr b/spec/zip_spec.cr
index 83d0dcc..7505fd3 100644
--- a/spec/zip_spec.cr
+++ b/spec/zip_spec.cr
@@ -1,7 +1,7 @@
require "./spec_helper"
TEST_DIR = File.dirname(__FILE__)
-TEST_FILE_PATH = File.join(TEST_DIR, "..", "shard.yml")
+TEST_FILE_PATH = File.join(TEST_DIR, "..", "src", "zip.cr")
describe Zip do
# TODO: Write tests
@@ -42,7 +42,7 @@ describe Zip::Writer do
it "creates an entry from a File" do
Zip.write(File.join(TEST_DIR, "test-file.zip")) do |zip|
- zip.add_file("shard.yml", TEST_FILE_PATH)
+ zip.add_file("test.cr", TEST_FILE_PATH)
end
end
@@ -50,7 +50,7 @@ describe Zip::Writer do
Zip.write(File.join(TEST_DIR, "test-many.zip")) do |zip|
zip.add("foo.txt", MemoryIO.new("foo"))
zip.add("bar.txt", "bar")
- zip.add_file("shard.yml", TEST_FILE_PATH)
+ zip.add_file("test.cr", TEST_FILE_PATH)
end
end
end