spec(Tree): Replace deprecated MemoryIO

Crystal 0.20 introduced a change so `MemoryIO` is know known as
`IO::Memory`.

Since no current spec was using the deprecation redirect, there was
warning raised.

Fixes #16
This commit is contained in:
Luis Lavena 2016-12-03 10:55:48 -03:00
parent bed664a936
commit 40b8e26ba5

View file

@ -5,7 +5,7 @@ require "../spec_helper"
module Radix module Radix
class Tree(T) class Tree(T)
@show_deprecations = false @show_deprecations = false
@stderr : MemoryIO? @stderr : IO::Memory?
def show_deprecations! def show_deprecations!
@show_deprecations = true @show_deprecations = true
@ -13,7 +13,7 @@ module Radix
private def deprecation(message) private def deprecation(message)
if @show_deprecations if @show_deprecations
@stderr ||= MemoryIO.new @stderr ||= IO::Memory.new
@stderr.not_nil!.puts message @stderr.not_nil!.puts message
end end
end end