need to move the marked lines into one method
[catagits/Catalyst-Devel.git] / t / get_sharedir_file.t
CommitLineData
163f1f1f 1use strict;
2use warnings;
3
4use Test::MockObject::Extends;
5use Test::More tests => 3;
6use Test::Exception;
7
8use Catalyst::Helper;
9
10my $i = Test::MockObject::Extends->new('Catalyst::Helper');
11
12throws_ok {
13 $i->get_sharedir_file(qw/does not exist and hopefully never will or we are
14 totally screwed.txt/);
15} qr/No such/, 'Exception for file not found from ->get_sharedir_file';
16
17lives_ok {
625dcb30 18 ok($i->get_sharedir_file('Makefile.PL.tt'), 'has contents');
163f1f1f 19} 'Can get_sharedir_file';
20