Fix deque creation

This commit is contained in:
Michael Miller 2019-11-10 12:49:24 -07:00
parent 14876a8e9a
commit eb1a99b3ab

View file

@ -50,7 +50,7 @@ module Spectator::SpecBuilder
def add_default_stub(type : T.class, stub : Mocks::MethodStub) forall T def add_default_stub(type : T.class, stub : Mocks::MethodStub) forall T
key = type.name key = type.name
@default_stubs[key] = Dequeue.new unless @default_stubs.has_key?(key) @default_stubs[key] = Deque(Mocks::MethodStub).new unless @default_stubs.has_key?(key)
@default_stubs[key] << stub @default_stubs[key] << stub
end end