Strip trailing whitespace
[catagits/Catalyst-Devel.git] / lib / Catalyst / Helper.pm
index 50f9fd9..31fdfef 100644 (file)
@@ -275,7 +275,7 @@ sub next_test {
 
 # Do not touch this method, *EVER*, it is needed for back compat.
 ## addendum: we had to split this method so we could have backwards
-## compatability.  otherwise, we'd have no way to pass stuff from __DATA__ 
+## compatability.  otherwise, we'd have no way to pass stuff from __DATA__
 
 sub render_file {
     my ( $self, $file, $path, $vars ) = @_;
@@ -446,13 +446,13 @@ sub _mk_create {
 sub _mk_compclass {
     my $self = shift;
     my $file = $self->{file};
-    return $self->render_sharedir_file( 'myapp_compclass.pl.tt', "$file" );
+    return $self->render_sharedir_file( 'lib', 'Helper', 'compclass.pl.tt', "$file" );
 }
 
 sub _mk_comptest {
     my $self = shift;
     my $test = $self->{test};
-    $self->render_sharedir_file( 'comptest.tt', "$test" );  ## wtf do i rename this to?
+    $self->render_sharedir_file( 't', 'comptest.tt', "$test" );  ## wtf do i rename this to?
 }
 
 sub _mk_images {
@@ -523,7 +523,7 @@ sub _find_share_dir {
         }
         confess "could not find sharebase by recursion. ended up at $dir, from $file"
           unless $share_base;
-        $args->{share_base_dir} = $share_base; 
+        $args->{share_base_dir} = $share_base;
     }
   }
   my $base = $args->{share_base_dir}->subdir($share_name);