Skip to content

Commit

Permalink
fix test for Win32
Browse files Browse the repository at this point in the history
  • Loading branch information
bayashi committed Mar 12, 2015
1 parent 683a103 commit 41c3bf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ my $builder = Module::Build->new(
'Test::More' => 0.88,
'Plack::Builder' => 0,
'HTTP::Request::Common' => 0,
'File::Spec' => 0,
'Plack::Test' => 0,
},
requires => {
Expand Down
4 changes: 3 additions & 1 deletion t/01_basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use warnings;
use strict;
use Plack::Builder;
use HTTP::Request::Common;
use File::Spec;
use Plack::Test;
use Test::More;

Expand Down Expand Up @@ -65,7 +66,8 @@ use Test::More;
like $res->content, qr{module:};
like $res->content, qr{name:.*Plack::Middleware::ModuleInfo};
like $res->content, qr{version:.*$Plack::Middleware::ModuleInfo::VERSION};
like $res->content, qr{file:.*Plack/Middleware/ModuleInfo};
my $expect = File::Spec->catfile(qw/Plack Middleware ModuleInfo/);
like $res->content, qr{file:.*$expect};

note $res->content if $ENV{AUTHOR_TEST};
};
Expand Down

0 comments on commit 41c3bf9

Please sign in to comment.