mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Raise on non-defined methods
This commit is contained in:
parent
925af7908b
commit
73e3f8fd66
1 changed files with 4 additions and 0 deletions
|
@ -73,6 +73,10 @@ module Spectator::Mocks
|
|||
end
|
||||
end
|
||||
|
||||
macro method_missing(call)
|
||||
raise ::Spectator::Mocks::UnexpectedMessageError.new("#{self} received unexpected message {{call.name}}")
|
||||
end
|
||||
|
||||
def to_s(io)
|
||||
io << "Double("
|
||||
io << @spectator_double_name
|
||||
|
|
Loading…
Reference in a new issue