From: Sebastian Riedel Date: Fri, 10 Jun 2005 00:36:32 +0000 (+0000) Subject: Fixed helper template X-Git-Tag: 5.7099_04~1326 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=3d5bb03e9c02fb0b12f4c7a0eddedab4537e7be7 Fixed helper template --- diff --git a/lib/Catalyst/Helper.pm b/lib/Catalyst/Helper.pm index de68515..32d2858 100644 --- a/lib/Catalyst/Helper.pm +++ b/lib/Catalyst/Helper.pm @@ -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}; @@ -828,7 +831,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 %]');