make constant methods mockable
This commit is contained in:
parent
a484fb126d
commit
e64345af5e
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ BEGIN {
|
|||
my $meta = Class::MOP::Class->initialize(__PACKAGE__);
|
||||
for my $sub (keys %paths) {
|
||||
my $path = $paths{$sub};
|
||||
$meta->add_method( $sub, sub () { $path } );
|
||||
$meta->add_method( $sub, sub { $path } );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue