Use internal arg name

This commit is contained in:
Michael Miller 2022-03-05 12:31:00 -07:00
parent ec57105afd
commit 2e15686d2d
No known key found for this signature in database
GPG key ID: AC78B32D30CE34A2

View file

@ -63,7 +63,7 @@ module Spectator
# Respond with configured value.
# Find a suitable response.
call = MethodCall.capture({{meth.name.symbolize}}, {{meth.args.map(&.name).splat}})
call = MethodCall.capture({{meth.name.symbolize}}, {{meth.args.map(&.internal_name).splat}})
response = @responses.find &.===(call)
if response
@ -83,7 +83,7 @@ module Spectator
# No return type restriction, return configured response.
# Find a suitable response.
call = MethodCall.capture({{meth.name.symbolize}}, {{meth.args.map(&.name).splat}})
call = MethodCall.capture({{meth.name.symbolize}}, {{meth.args.map(&.internal_name).splat}})
response = @responses.find &.===(call)
if response