Last active
November 3, 2017 14:21
-
-
Save KES777/f06576cea5999b49b62f124c83acbc57 to your computer and use it in GitHub Desktop.
not workint mojolicious lite app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Mojolicious::Lite; | |
package Lite; | |
use Mojolicious::Lite; | |
get '/bye' => sub{ shift->render( text => 'OK' ) }; | |
package main; | |
use Test::More; | |
use Test::Mojo; | |
get( '/hello' )->detour( 'Lite' ); | |
my $t = Test::Mojo->new; | |
$t->get_ok('/hello/bye')->content_is( 'OK' ); | |
done_testing; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment