File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -608,8 +608,8 @@ describe('The mach library', function()
608
608
609
609
should_fail_with_exactly (expected_failure , function ()
610
610
o .m :should_be_called ():when (function ()
611
- f ()
612
- end )
611
+ f ()
612
+ end )
613
613
end )
614
614
end )
615
615
@@ -679,7 +679,12 @@ describe('The mach library', function()
679
679
end )
680
680
681
681
it (' should match other arguments when mach.any is used for an argument' , function ()
682
- should_fail (function ()
682
+ local expected_failure =
683
+ ' Unexpected arguments (false, 2, 4) provided to function f\n ' ..
684
+ ' Incomplete calls:\n ' ..
685
+ ' \t f(<mach.any>, 2, 3)'
686
+
687
+ should_fail_with_exactly (expected_failure , function ()
683
688
f :should_be_called_with (mach .any , 2 , 3 ):when (function ()
684
689
f (false , 2 , 4 )
685
690
end )
Original file line number Diff line number Diff line change 1
- return {}
1
+ return setmetatable ({}, {
2
+ __tostring = function () return ' <mach.any>' end
3
+ })
You can’t perform that action at this time.
0 commit comments