Permalink
Browse files

fixed Changes tests

  • Loading branch information...
1 parent d9a879d commit 57347f9eb2b77822edebd979a79ab89f1647d80c @barbie committed Jan 1, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 t/95changedate.t
View
@@ -6,7 +6,13 @@ use Labyrinth::Plugin::Core;
plan skip_all => "Author tests not required for installation"
unless ( $ENV{AUTOMATED_TESTING} );
-my $fh = IO::File->new('CHANGES','r') or plan skip_all => "Cannot open Changes file";
+my $changes;
+$changes = 'Changes' if(-f 'Changes');
+$changes = 'CHANGES' if(-f 'CHANGES');
+
+plan skip_all => 'No Changes file found' unless($changes);
+
+my $fh = IO::File->new($changes,'r') or plan skip_all => "Cannot open $changes file";
plan no_plan;

0 comments on commit 57347f9

Please sign in to comment.