mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Add stubs in reverse order
This commit is contained in:
parent
4fea5ea435
commit
2bc4f71edb
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ module Spectator::SpecBuilder
|
|||
def add_default_stub(type : T.class, stub : Mocks::MethodStub) forall T
|
||||
key = type.name
|
||||
@default_stubs[key] = Deque(Mocks::MethodStub).new unless @default_stubs.has_key?(key)
|
||||
@default_stubs[key] << stub
|
||||
@default_stubs[key].unshift(stub)
|
||||
end
|
||||
|
||||
private def build_hooks
|
||||
|
|
Loading…
Reference in a new issue