use FindBin qw/$Bin/;
use lib "$Bin/lib";
use Catalyst::Helper;
-use MyTestHelper;
-
-use Test::More tests => 1;
+use Test::More;
-my $helper = bless {}, 'MyTestHelper';
+my $helper = bless {}, 'Catalyst::Helper';
-package MyTestHelper;
-use FindBin qw/$Bin/;
-use Test::More;
use File::Temp qw/tempfile/;
my ($fh, $fn) = tempfile;
close $fh;
-ok( $helper->render_sharedir_file('script/myapp_cgi.pl.tt', { appprefix => 'fnargh' }), "sharedir file rendered" );
+ok( $helper->render_sharedir_file('script/myapp_cgi.pl.tt', $fn, { appprefix => 'fnargh' }), "sharedir file rendered" );
+ok -r $fn;
+ok -s $fn;
+unlink $fn;
+
+done_testing;