Changeset 13365

Show
Ignore:
Timestamp:
06/07/08 10:21:02 (5 years ago)
Author:
nothingmuch
Message:

more helpful request builder test

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/HTTP-Engine/branches/lazy_request/t/10_request_builder.t

    r11543 r13365  
    55use IO::Scalar; 
    66 
    7 plan tests => 7; 
     7plan tests => 8; 
    88 
    99can_ok( 
     
    4242--- body 
    4343--- test 
    44 is $c->req->address, '127.0.0.1'; 
     44is $c->req->address, '127.0.0.1', "request address"; 
    4545 
    4646=== 
     
    5555--- body: a=b&c=d 
    5656--- test 
    57 is_deeply $c->req->body_params, {a => 'b', c => 'd'}; 
     57is_deeply $c->req->body_params, {a => 'b', c => 'd'}, "body params"; 
    5858 
    5959=== 
     
    7070isa_ok $c->req->body, 'IO::Handle'; 
    7171$c->req->body->sysread(my $buf, $c->req->content_length); 
    72 is $buf, 'OCTET STREAM'; 
     72is $buf, 'OCTET STREAM', "buffer"; 
    7373 
    7474=== cookie 
     
    8484--- body: OCTET STREAM 
    8585--- test 
    86 is $c->req->cookie('unknown'), undef; 
    87 is $c->req->cookie('foo')->value, 'hoge'; 
     86is $c->req->cookie('unknown'), undef, "unknown cookie"; 
     87isa_ok( $c->req->cookie('foo'), "CGI::Simple::Cookie" ); 
     88is $c->req->cookie('foo')->value, 'hoge', "cookie value"; 
    8889