Skip to content

Instantly share code, notes, and snippets.

@tempire
Created February 9, 2011 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tempire/817998 to your computer and use it in GitHub Desktop.
Save tempire/817998 to your computer and use it in GitHub Desktop.
$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