Skip to content

Commit

Permalink
[Test::Mock] update to new version that does not warn
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Oct 21, 2012
1 parent 2ef186a commit 97572e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/Test__Mock/lib/Test/Mock.pm
Expand Up @@ -52,8 +52,8 @@ module Test::Mock {
last unless $p.^parents(:local);
for $p.^methods(:local) -> $m {
unless %already-seen{$m.name} {
$mocker.HOW.add_method($mocker, $m.name, method (|$c) {
self.'!mock-log'().log-method-call($m.name, $c);
$mocker.HOW.add_method($mocker, $m.name, method (|c) {
self.'!mock-log'().log-method-call($m.name, c);
%returning{$m.name} ~~ Iterable || %returning{$m.name} ~~ Parcel ??
@(%returning{$m.name}) !!
%returning{$m.name}
Expand Down

0 comments on commit 97572e5

Please sign in to comment.