Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better response tests
  • Loading branch information
kraih committed Feb 12, 2015
1 parent 3bbe73c commit 6df30fc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions t/mojo/response.t
Expand Up @@ -991,10 +991,11 @@ is $res->body('hello!')->body, 'hello!', 'right content';
$res->content(Mojo::Content::MultiPart->new);
$res->body('hi!');
is $res->body, 'hi!', 'right content';
is $res->body(encode('UTF-8', ''))->text, encode('UTF-8', ''),
'right content';
$res->headers->content_type('text/plain;charset=UTF-8');
is $res->body(encode('UTF-8', ''))->text, '', 'right content';
my $yatta = encode 'shift_jis', 'やった';
is $res->body($yatta)->text, $yatta, 'right content';
$res->headers->content_type('text/plain;charset=shift_jis');
is $res->body($yatta)->text, 'やった', 'right content';
is $res->body($yatta)->dom->text, 'やった', 'right text';

# Body exceeding memory limit (no upgrade)
{
Expand Down

0 comments on commit 6df30fc

Please sign in to comment.