Skip to content

Instantly share code, notes, and snippets.

@KES777
Last active November 3, 2017 14:21
Show Gist options
  • Save KES777/f06576cea5999b49b62f124c83acbc57 to your computer and use it in GitHub Desktop.
Save KES777/f06576cea5999b49b62f124c83acbc57 to your computer and use it in GitHub Desktop.
not workint mojolicious lite app
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