mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix stubbed yielding method calling original instead of stub
This commit is contained in:
parent
0970f02465
commit
e68697a212
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ module Spectator::Mocks
|
|||
end
|
||||
|
||||
{% if body && !body.is_a?(Nop) %}
|
||||
%method({{args.splat}}) { {{original}} { |*%ya| yield *%ya } }
|
||||
%method({{args.splat}}) { |*%ya| yield *%ya }
|
||||
{% else %}
|
||||
{{original}} do |*%yield_args|
|
||||
yield *%yield_args
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue