Subject: | Recent Moose broke Test::TempDir |
It seems that recent releases of Moose broke Test::TempDir, because they
don't want to delegate to a string/classname anymore. The following
change fixes that:
has handle_class => (
isa => "ClassName",
is => "rw",
default => "Test::TempDir::Handle",
- handles => { new_handle => 'new' },
+ handles => { new_handle => sub { shift->handle_class->new(@_) } },
);
Of course, it's debatable whether the upstream change in Moose (or
wherever) makes sense.
-max