Fix no_args being passed incorrectly

This commit is contained in:
Michael Miller 2021-07-10 22:43:54 -06:00
parent d9bb8e33fe
commit 4d030fb85a
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -41,6 +41,10 @@ module Spectator::Mocks
NilMethodStub.new(@name, @source, args) NilMethodStub.new(@name, @source, args)
end end
def with(args : Arguments)
NilMethodStub.new(@name, @source, @args)
end
def and_call_original def and_call_original
OriginalMethodStub.new(@name, @source, @args) OriginalMethodStub.new(@name, @source, @args)
end end