From eb6e2ae5bd6c84dc0fe52fccb8a252a929808df0 Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Tue, 22 Nov 2016 21:02:28 +0100 Subject: Rename MemoryIO to IO::Memory --- spec/zip_spec.cr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec') 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 -- cgit v1.2.3