Inject stubbable method that accepts a block

This commit is contained in:
Michael Miller 2022-03-19 16:09:35 -06:00
parent 99aa8afdce
commit 15dd2ea6f1
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF

View file

@ -53,6 +53,10 @@ module Spectator
inject_stub def {{key.id}}(*%args, **%kwargs) inject_stub def {{key.id}}(*%args, **%kwargs)
{{value}} {{value}}
end end
inject_stub def {{key.id}}(*%args, **%kwargs, &)
{{key.id}}
end
{% end %} {% end %}
{% if block %} {% if block %}