fixed tests
Sebastian Riedel [Wed, 23 Mar 2005 22:21:31 +0000 (22:21 +0000)]
t/12default.t
t/13beginend.t

index 927ad97..ed3ca04 100644 (file)
@@ -12,7 +12,7 @@ __PACKAGE__->action(
 package TestApp::C::Foo::Bar;
 
 TestApp->action(
-    '!?default' => sub {
+    '!default' => sub {
         my ( $self, $c ) = @_;
         $c->res->output('yada');
     }
@@ -24,4 +24,4 @@ use Test::More tests => 2;
 use Catalyst::Test 'TestApp';
 
 ok( get('/foo')         =~ /bar/ );
-ok( get('/foo_bar/foo') =~ /yada/ );
+ok( get('/foo/bar/foo') =~ /yada/ );
index 3469eec..81bd9d9 100644 (file)
@@ -22,14 +22,14 @@ package TestApp::C::Foo::Bar;
 
 TestApp->action(
 
-    '!?begin' => sub {
+    '!begin' => sub {
         my ( $self, $c ) = @_;
         $c->res->output('yada');
     },
 
-    '!?default' => sub { },
+    '!default' => sub { },
 
-    '!?end' => sub {
+    '!end' => sub {
         my ( $self, $c ) = @_;
         $c->res->output('yada');
         $c->res->output( $c->res->output . 'yada' );
@@ -43,4 +43,4 @@ use Test::More tests => 2;
 use Catalyst::Test 'TestApp';
 
 ok( get('/foo')         =~ /foobar/ );
-ok( get('/foo_bar/foo') =~ /yadayada/ );
+ok( get('/foo/bar/foo') =~ /yadayada/ );