fix bad Mock API, new requires a module name
This commit is contained in:
parent
c678529589
commit
c56221f6da
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ use Test::Deep;
|
|||
use Test::MockObject;
|
||||
my $mockSpectre = Test::MockObject->new();
|
||||
$mockSpectre->fake_module('WebGUI::Workflow::Spectre');
|
||||
$mockSpectre->fake_new();
|
||||
$mockSpectre->fake_new('WebGUI::Workflow::Spectre');
|
||||
my @spectreGuts = ();
|
||||
$mockSpectre->mock('notify', sub{
|
||||
my ($message, $data) = @_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue