Fixed typo
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Helper.pm
index de68515..21cb7e7 100644 (file)
@@ -219,6 +219,9 @@ sub next_test {
         $prefix         = $prefix;
         $tname          = $prefix . '.t';
         $self->{prefix} = $prefix;
+        $prefix = lc $prefix;
+        $prefix =~ s/-/\//g;
+        $self->{uri} = $prefix;
     }
     my $dir  = $self->{test_dir};
     my $type = $self->{type};
@@ -808,7 +811,6 @@ sub default : Private {
 }
 
 =back
-
 [% END %]
 =head1 AUTHOR
 
@@ -828,7 +830,7 @@ use Test::More tests => 3;
 use_ok( Catalyst::Test, '[% app %]' );
 use_ok('[% class %]');
 
-ok( request('[% prefix %]')->is_success );
+ok( request('[% uri %]')->is_success );
 [% ELSE %]
 use Test::More tests => 1;
 use_ok('[% class %]');