> On 2 Sep 2015, at 9:34 am, Neil Watson <[email protected]> wrote:
> 
> 
> If I have something like this in a *.t test file.
> 
> lives_and {
>  $t->get_ok( '/initialize_database' )
>  ->status_is( 200, 'Initialize database' );
> } '/initialze_database';
> 
> If the test fails how I get the test to output details of the failure?
> All I see now is that 500 was returned, but not the page.
> 

Hey Neil,

There’s a ‘tx’ method on the test object, so:

   say $t->tx->res->body

        - Justin

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to