extended test
[catagits/Catalyst-Runtime.git] / t / 12default.t
index d7cc040..ed3ca04 100644 (file)
@@ -1,6 +1,6 @@
 package TestApp;
 
-use Catalyst;
+use Catalyst qw[-Engine=Test];
 
 __PACKAGE__->action(
     '!default' => sub {
@@ -12,7 +12,7 @@ __PACKAGE__->action(
 package TestApp::C::Foo::Bar;
 
 TestApp->action(
-    '!?default' => sub {
+    '!default' => sub {
         my ( $self, $c ) = @_;
         $c->res->output('yada');
     }
@@ -23,5 +23,5 @@ package main;
 use Test::More tests => 2;
 use Catalyst::Test 'TestApp';
 
-like( get('/foo')         , qr/bar/ );
-like( get('/foo_bar/foo') , qr/yada/ );
+ok( get('/foo')         =~ /bar/ );
+ok( get('/foo/bar/foo') =~ /yada/ );