Changeset 18018
- Timestamp:
- 08/22/08 06:50:54 (5 months ago)
- Location:
- lang/perl/Nanto/trunk/t
- Files:
-
- 4 modified
- 2 moved
-
020_web/Handler.t (modified) (2 diffs)
-
Utils.pm (modified) (1 diff)
-
lib/Foo/Web/C (moved) (moved from lang/perl/Nanto/trunk/t/Web/C)
-
lib/Foo/Web/C/Foo.pm (modified) (2 diffs)
-
lib/Foo/Web/Dispatcher.pm (modified) (1 diff)
-
lib/Foo/Web/View (moved) (moved from lang/perl/Nanto/trunk/t/Web/View)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Nanto/trunk/t/020_web/Handler.t
r18016 r18018 4 4 use Test::More; 5 5 6 plan tests => 6;6 plan tests => 7; 7 7 8 8 # 404 … … 47 47 }; 48 48 49 # dispatcher 50 do { 51 my $res = run_engine( 52 'GET', '/dispatcher' 53 ); 54 is $res->content, 'Foo::Web::Dispatcher'; 55 }; 56 -
lang/perl/Nanto/trunk/t/Utils.pm
r18008 r18018 18 18 19 19 sub loader { 20 Nanto::ClassLoader->new(base => ' t');20 Nanto::ClassLoader->new(base => 'Foo'); 21 21 } 22 22 -
lang/perl/Nanto/trunk/t/lib/Foo/Web/C/Foo.pm
r18016 r18018 1 package t::Web::C::Foo;1 package Foo::Web::C::Foo; 2 2 use Nanto::Web::C; 3 3 … … 35 35 }; 36 36 37 on 'dispatcher' => { 38 GET => sub { 39 res( 40 status => 200, 41 body => dispatcher(), 42 ); 43 }, 44 }; 45 37 46 1; -
lang/perl/Nanto/trunk/t/lib/Foo/Web/Dispatcher.pm
r18016 r18018 9 9 connect 'invalid_object', {controller => 'Foo', action => 'invalid_object', args => {} }; 10 10 connect 'redirect', {controller => 'Foo', action => 'redirect', args => {} }; 11 connect 'dispatcher', {controller => 'Foo', action => 'dispatcher', args => {} }; 11 12 12 13 1;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)