Skip to content

Commit

Permalink
use a more common header in test example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 22, 2014
1 parent f8ccd47 commit 7ca8325
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/Test/Mojo.pm
Expand Up @@ -664,29 +664,29 @@ arguments as L<Mojo::UserAgent/"head">, except for the callback.
=head2 header_is
$t = $t->header_is(Expect => 'fun');
$t = $t->header_is(Expect => 'fun', 'right header');
$t = $t->header_is(ETag => '"abc321"');
$t = $t->header_is(ETag => '"abc321"', 'right header');
Check response header for exact match.
=head2 header_isnt
$t = $t->header_isnt(Expect => 'fun');
$t = $t->header_isnt(Expect => 'fun', 'different header');
$t = $t->header_isnt(Etag => '"abc321"');
$t = $t->header_isnt(ETag => '"abc321"', 'different header');
Opposite of L</"header_is">.
=head2 header_like
$t = $t->header_like(Expect => qr/fun/);
$t = $t->header_like(Expect => qr/fun/, 'right header');
$t = $t->header_like(ETag => qr/abc/);
$t = $t->header_like(ETag => qr/abc/, 'right header');
Check response header for similar match.
=head2 header_unlike
$t = $t->header_like(Expect => qr/fun/);
$t = $t->header_like(Expect => qr/fun/, 'different header');
$t = $t->header_like(ETag => qr/abc/);
$t = $t->header_like(ETag => qr/abc/, 'different header');
Opposite of L</"header_like">.
Expand Down

0 comments on commit 7ca8325

Please sign in to comment.