Test::Mojo::Role::Routes - Write Mojo tests using named routes.
use Test::Mojo; my $t = Test::Mojo->with_roles('+Routes')->new('MyApp'); $t->get_route_ok('dashboard')->status_is(200)->route_is('dashboard');
Test::Mojo::Role::Routes allows you to use your named routes in tests.
Brian Davis, BD3i LLC <bdiii@cpan.org>
This software is copyright (c) 2021 by Brian Davis and BD3i LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Test::Mojo::Role::Routes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Mojo::Role::Routes
CPAN shell
perl -MCPAN -e shell install Test::Mojo::Role::Routes
For more information on module installation, please visit the detailed CPAN module installation guide.