mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Copy-paste and tweak to implement argument expectations
This commit is contained in:
parent
4acf6aaa58
commit
82e01e44de
2 changed files with 7 additions and 2 deletions
|
@ -38,6 +38,11 @@ module Spectator::Matchers
|
|||
}
|
||||
end
|
||||
|
||||
def with(*args, **opts)
|
||||
args = Mocks::GenericArguments.new(args, opts)
|
||||
ReceiveArgumentsMatcher.new(@expected, args, @range)
|
||||
end
|
||||
|
||||
def once
|
||||
ReceiveMatcher.new(@expected, (1..1))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue