Fixed get_sharedir_file.t checking for the wrong exception text.
Zachary Stevens [Thu, 17 Sep 2009 22:20:48 +0000 (22:20 +0000)]
t/get_sharedir_file.t

index 56b9a08..899af3b 100644 (file)
@@ -12,7 +12,7 @@ my $i = Test::MockObject::Extends->new('Catalyst::Helper');
 throws_ok {
     $i->get_sharedir_file(qw/does not exist and hopefully never will or we are
         totally screwed.txt/);
-} qr/No such/, 'Exception for file not found from ->get_sharedir_file';
+} qr/Cannot find/, 'Exception for file not found from ->get_sharedir_file';
 
 lives_ok {
     ok($i->get_sharedir_file('Makefile.PL.tt'), 'has contents');