mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix issues with creating anonymous null doubles
This commit is contained in:
parent
e44f0229d6
commit
acad88204a
2 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ module Spectator::DSL
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def anonymous_null_double(name : Strings, **stubs)
|
def anonymous_null_double(name : String, **stubs)
|
||||||
AnonymousNullDouble.new(name, stubs)
|
AnonymousNullDouble.new(name, stubs)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ module Spectator::Mocks
|
||||||
end
|
end
|
||||||
|
|
||||||
def as_null_object
|
def as_null_object
|
||||||
AnonymousNullDouble.new(@values)
|
AnonymousNullDouble.new(@name, @values)
|
||||||
end
|
end
|
||||||
|
|
||||||
macro method_missing(call)
|
macro method_missing(call)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue