3 use Test::More qw/no_plan/;
5 BEGIN { use_ok 'Catalyst::Test', 'LolCatalyst::Lite' }
7 use HTTP::Request::Common;
9 my ($request, $response);
12 'http://localhost/translate',
13 'Content-Type' => 'form-data',
15 'lol' => 'Can i have a cheese burger?',
18 ok( $response = request($request), 'Request');
19 ok( $response->is_success, 'Response Successful 2xx' );
20 is( $response->content_type, 'text/html', 'Response Content-Type' );
21 like( $response->content, qr/CHEEZ/, "contains translated string");