Changeset 18015
- Timestamp:
- 08/22/08 06:27:09 (5 months ago)
- Location:
- lang/perl/Nanto/trunk/t
- Files:
-
- 3 modified
-
020_web/Handler.t (modified) (2 diffs)
-
Web/C/Foo.pm (modified) (1 diff)
-
lib/Foo/Web/Dispatcher.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Nanto/trunk/t/020_web/Handler.t
r18014 r18015 4 4 use Test::More; 5 5 6 plan tests => 3;6 plan tests => 5; 7 7 8 8 # 404 … … 22 22 is $res->code, 500; 23 23 }; 24 25 # 500(but, no response) 26 do { 27 my $res = run_engine( 28 'GET', '/no_response' 29 ); 30 is $res->code, 500, 'no response'; 31 }; 32 33 # 500(but, invalid object) 34 do { 35 my $res = run_engine( 36 'GET', '/invalid_object' 37 ); 38 is $res->code, 500, 'invalid object'; 39 }; 40 -
lang/perl/Nanto/trunk/t/Web/C/Foo.pm
r18014 r18015 19 19 }; 20 20 21 on 'no_response' => { 22 GET => sub { }, 23 }; 24 25 on 'invalid_object' => { 26 GET => sub { 27 return bless {}, 'ThisIsInvalid' 28 }, 29 }; 30 21 31 1; -
lang/perl/Nanto/trunk/t/lib/Foo/Web/Dispatcher.pm
r18014 r18015 6 6 connect '', {controller => 'Foo', action => 'simple_html', args => {} }; 7 7 connect 'die', {controller => 'Foo', action => 'die', args => {} }; 8 connect 'no_response', {controller => 'Foo', action => 'no_response', args => {} }; 9 connect 'invalid_object', {controller => 'Foo', action => 'invalid_object', args => {} }; 8 10 9 11 1;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)