Copy-paste and tweak to implement argument expectations

This commit is contained in:
Michael Miller 2019-11-03 14:48:08 -07:00
parent 4acf6aaa58
commit 82e01e44de
2 changed files with 7 additions and 2 deletions

View file

@ -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