add 'to' action to controller, add test (currently failing, show error)
[catagits/catbook-code.git] / t / controller_Translate.t
index 1733716..59c2ca4 100644 (file)
@@ -20,3 +20,11 @@ ok( $response->is_success, 'Response Successful 2xx' );
 is( $response->content_type, 'text/html', 'Response Content-Type' );
 like( $response->content, qr/CHEEZ/, "contains translated string");
 
+ok(
+  $response = request(GET 'http://localhost/translate/1/to/LOLCAT'),
+  'Request for specific translation type'
+);
+
+ok( $response->is_success, 'Response Successful 2xx' );
+
+like( $response->content, qr/CHEEZ/, "contains translated string");