Move the local ENV to the right place
[catagits/Catalyst-Devel.git] / t / get_sharedir_file.t
CommitLineData
163f1f1f 1use strict;
2use warnings;
3
0d4859fc 4use Test::More;
163f1f1f 5use Test::Exception;
6
7use Catalyst::Helper;
8
0d4859fc 9my $i = bless {}, 'Catalyst::Helper';
163f1f1f 10
11throws_ok {
12 $i->get_sharedir_file(qw/does not exist and hopefully never will or we are
13 totally screwed.txt/);
5f7118d1 14} qr/Cannot find/, 'Exception for file not found from ->get_sharedir_file';
163f1f1f 15
16lives_ok {
625dcb30 17 ok($i->get_sharedir_file('Makefile.PL.tt'), 'has contents');
163f1f1f 18} 'Can get_sharedir_file';
19
0d4859fc 20done_testing;