Skip to content

Commit

Permalink
test tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 20, 2012
1 parent 6804499 commit d1f476b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions t/mojolicious/static_lite_app.t
Expand Up @@ -78,11 +78,10 @@ $t->get_ok('/hello4.txt')->status_is(200)
->header_is('X-Powered-By' => 'Mojolicious (Perl)')
->header_is('Content-Length' => 0)->content_is('');

# GET /hello4.txt (empty file, invalid range)
# GET /hello4.txt (partial empty file)
$t->get_ok('/hello4.txt' => {Range => 'bytes=0-0'})->status_is(416)
->header_is(Server => 'Mojolicious (Perl)')
->header_is('X-Powered-By' => 'Mojolicious (Perl)')
->header_is('Content-Length' => 0)->content_is('');
->header_is(Server => 'Mojolicious (Perl)')
->header_is('X-Powered-By' => 'Mojolicious (Perl)')->content_is('');

# GET /static.txt (base64 static inline file, If-Modified-Since)
my $modified = Mojo::Date->new->epoch(time - 3600);
Expand Down

0 comments on commit d1f476b

Please sign in to comment.