X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F01app.t;h=94eccd20fa412c625ea01cc0274ad40ee237d14e;hb=e639dea98fb69c9382b0823026d8a62111d3053b;hp=296618facbacc2fd6ab13dad3f7db4d78444736f;hpb=cc003be0b27748d7b580743ca4c96720f2a591f5;p=catagits%2Fcatbook-code.git diff --git a/t/01app.t b/t/01app.t index 296618f..94eccd2 100644 --- a/t/01app.t +++ b/t/01app.t @@ -1,7 +1,6 @@ use strict; use warnings; -# use Test::More qw/no_plan/; -use Test::More tests => 13; +use Test::More qw/no_plan/; BEGIN { use_ok 'Catalyst::Test', 'LolCatalyst::Lite' } @@ -17,20 +16,6 @@ use Test::More tests => 13; is( $response->content_type, 'text/html', 'Response Content-Type' ); like( $response->content, qr/Translate/, "contains translated string"); - # test request to translate - - $request = POST( - 'http://localhost/translate', - 'Content-Type' => 'form-data', - 'Content' => [ - 'lol' => 'Can i have a cheese burger?', - ]); - - ok( $response = request($request), 'Request'); - ok( $response->is_success, 'Response Successful 2xx' ); - is( $response->content_type, 'text/html', 'Response Content-Type' ); - like( $response->content, qr/CHEEZ/, "contains translated string"); - # test request to translate_service $request = POST(