Fix failing test - render_file_contents is expected to return the filename
Dave Rolsky [Sun, 15 May 2011 15:05:53 +0000 (10:05 -0500)]
I think it'd be better to change the tests, but this is the simplest fix.

lib/Catalyst/Helper.pm

index 94e17e3..a9296ae 100644 (file)
@@ -326,6 +326,7 @@ sub render_file_contents {
         message => qq/Couldn't process "$template", / . $t->error() );
     my $file = $self->mk_file( $path, $output );
     chmod $perms, file($file) if defined $perms;
+    return $file;
 }
 
 sub _mk_information {