diff options
| author | Paul Duncan <github@pablotron.org> | 2016-11-25 10:52:26 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-25 10:52:26 -0500 | 
| commit | b8255fae9ed5e76482a8dcdf22bb1d0a42baa511 (patch) | |
| tree | cc9214fec0d9f2904c1544f6e10898e83b0ef4fd /spec | |
| parent | a6855e0cc3fd8af026444e36e33c6767301094b5 (diff) | |
| parent | eb6e2ae5bd6c84dc0fe52fccb8a252a929808df0 (diff) | |
| download | zip-crystal-b8255fae9ed5e76482a8dcdf22bb1d0a42baa511.tar.xz zip-crystal-b8255fae9ed5e76482a8dcdf22bb1d0a42baa511.zip  | |
Merge pull request #5 from Sija/crystal-0.20
Update to Crystal v0.20
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/zip_spec.cr | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/zip_spec.cr b/spec/zip_spec.cr index 5898858..7f16b5d 100644 --- a/spec/zip_spec.cr +++ b/spec/zip_spec.cr @@ -36,7 +36,7 @@ describe Zip do      end    end -  it "creates an entry from a MemoryIO" do +  it "creates an entry from an IO::Memory" do      Zip.write(File.join(TEST_DIR, "test-memio.zip")) do |zip|        zip.add("bar.txt", "bar")      end @@ -48,9 +48,9 @@ describe Zip do      end    end -  it "creates an archive from a MemoryIO, String, and File" do +  it "creates an archive from an IO::Memory, String, and File" do      Zip.write(File.join(TEST_DIR, "test-many.zip")) do |zip| -      zip.add("foo.txt", MemoryIO.new("foo")) +      zip.add("foo.txt", IO::Memory.new("foo"))        zip.add("bar.txt", "bar")        zip.add_file("test.cr", TEST_FILE_PATH)        zip.add_dir("example-dir") @@ -96,7 +96,7 @@ describe Zip do          if e.dir?            puts "#{e.path} is a directory"          else -          io = MemoryIO.new +          io = IO::Memory.new            # e.write(STDOUT)            e.write(io)            io.close  | 
