mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Anything can be passed to allow()
This commit is contained in:
parent
8262bb0316
commit
aa33acd14e
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ module Spectator::DSL
|
||||||
{% end %}
|
{% end %}
|
||||||
end
|
end
|
||||||
|
|
||||||
def allow(double : ::Spectator::Mocks::Double)
|
def allow(thing : T) forall T
|
||||||
Mocks::Allow.new(double)
|
Mocks::Allow.new(thing)
|
||||||
end
|
end
|
||||||
|
|
||||||
macro receive(method_name, _source_file = __FILE__, _source_line = __LINE__)
|
macro receive(method_name, _source_file = __FILE__, _source_line = __LINE__)
|
||||||
|
|
Loading…
Reference in a new issue