diff options
| author | Sijawusz Pur Rahnama <sija@sija.pl> | 2016-11-22 21:02:28 +0100 | 
|---|---|---|
| committer | Sijawusz Pur Rahnama <sija@sija.pl> | 2016-11-22 21:02:28 +0100 | 
| commit | eb6e2ae5bd6c84dc0fe52fccb8a252a929808df0 (patch) | |
| tree | cc9214fec0d9f2904c1544f6e10898e83b0ef4fd /spec | |
| parent | 0a74acdb98c7d407e307a99998457d0791e9f227 (diff) | |
| download | zip-crystal-eb6e2ae5bd6c84dc0fe52fccb8a252a929808df0.tar.xz zip-crystal-eb6e2ae5bd6c84dc0fe52fccb8a252a929808df0.zip | |
Rename MemoryIO to IO::Memory
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 | 
