Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
$t->post_form_ok( 'http://api.webservice.com/accounts' =>
{ name => 'unicorn', career => 'baker', type => 'magical' } )
->status_is(201)
->header_is('content-type' => 'application/json')
->json_content_is( { id => 'uni123', name => 'unicorn' } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment