in reply to How can you unit test a Dancer2 plugin mehod?

I found a decent solution, I think. Go down a layer of abstraction and create a Dancer2::Core::App object and modify it with provided methods.

my $app = Dancer2::Core::App->new(); $app->with_plugins( 'Menu' ); $app->add_route( method => 'get', regexp => '/test', code => sub {return 'hi'}, ); Dancer2::Plugin::Menu::_do_stuff($app);

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks