From: Sebastian Riedel Date: Wed, 23 Mar 2005 22:21:31 +0000 (+0000) Subject: fixed tests X-Git-Tag: 5.7099_04~1701 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=847c44c5526098d439258f5e68b05577d68f63ac;hp=b676386894f30ba0b4c7291d466316454bd46113;p=catagits%2FCatalyst-Runtime.git fixed tests --- diff --git a/t/12default.t b/t/12default.t index 927ad97..ed3ca04 100644 --- a/t/12default.t +++ b/t/12default.t @@ -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/ ); diff --git a/t/13beginend.t b/t/13beginend.t index 3469eec..81bd9d9 100644 --- a/t/13beginend.t +++ b/t/13beginend.t @@ -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/ );