Skip to content

Commit

Permalink
fixing test on Win32 (damn linebreaks)
Browse files Browse the repository at this point in the history
  • Loading branch information
garu committed Sep 15, 2013
1 parent 8caab54 commit 1039739
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions t/02-justworks.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use Mojo::Base -strict;
use Test::More tests => 6;
use Test::More tests => 7;

use File::Spec::Functions 'catdir';
use File::Temp 'tempdir';
Expand Down Expand Up @@ -30,8 +30,14 @@ my $content = Mojo::Asset::File->new(path => $path)->slurp;

like(
$content,
qr/^\[DEBUG\] main:21 - Just works\.\n\[DEBUG\] main:22 - told ya!$/s,
'right content'
qr/\[DEBUG\] main:21 - Just works\./,
'right content (1)',
);

like(
$content,
qr/\[DEBUG\] main:22 - told ya!/,
'right content (2)',
);

unlike(
Expand Down

0 comments on commit 1039739

Please sign in to comment.