Show
Ignore:
Timestamp:
05/04/08 19:27:07 (5 years ago)
Author:
tokuhirom
Message:

added test cases for handling cookie.

Files:
1 modified

Legend:

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

    r11090 r11092  
    55use IO::Scalar; 
    66 
    7 plan tests => 5; 
     7plan tests => 7; 
    88 
    99can_ok( 
     
    7171is $buf, 'OCTET STREAM'; 
    7272 
     73=== cookie 
     74--- env 
     75REMOTE_ADDR:    127.0.0.1 
     76SERVER_PORT:    80 
     77QUERY_STRING:   '' 
     78REQUEST_METHOD: 'POST' 
     79HTTP_HOST: localhost 
     80HTTP_CONTENT_LENGTH: 12 
     81HTTP_CONTENT_TYPE: application/octet-stream 
     82HTTP_COOKIE: foo=hoge; foo=hoge; path=/ 
     83--- body: OCTET STREAM 
     84--- test 
     85is $c->req->cookie('unknown'), undef; 
     86is $c->req->cookie('foo')->value, 'hoge'; 
     87