mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Use internal arg name
This commit is contained in:
parent
ec57105afd
commit
2e15686d2d
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ module Spectator
|
||||||
# Respond with configured value.
|
# Respond with configured value.
|
||||||
|
|
||||||
# Find a suitable 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)
|
response = @responses.find &.===(call)
|
||||||
|
|
||||||
if response
|
if response
|
||||||
|
@ -83,7 +83,7 @@ module Spectator
|
||||||
# No return type restriction, return configured response.
|
# No return type restriction, return configured response.
|
||||||
|
|
||||||
# Find a suitable 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)
|
response = @responses.find &.===(call)
|
||||||
|
|
||||||
if response
|
if response
|
||||||
|
|
Loading…
Reference in a new issue