Skip to content

Commit

Permalink
normalize paths for comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 25, 2016
1 parent 21c34d8 commit d20f2a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,5 +1,6 @@

6.49 2016-02-25
- Fixed Windows bug in "util.t".

6.48 2016-02-24
- Added files function to Mojo::Util.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Server/Morbo.pm
Expand Up @@ -14,7 +14,7 @@ has watch => sub { [qw(lib templates)] };
sub check {
my $self = shift;
$self->_check($_) and return $_
for map { -f $_ && -r $_ ? $_ : files $_ } @{$self->watch};
for map { -f $_ && -r _ ? $_ : files $_ } @{$self->watch};
return undef;
}

Expand Down
4 changes: 2 additions & 2 deletions t/mojo/util.t
Expand Up @@ -5,7 +5,7 @@ use lib "$FindBin::Bin/lib";

use Test::More;
use File::Basename 'dirname';
use File::Spec::Functions qw(catdir catfile);
use File::Spec::Functions qw(catdir catfile splitdir);
use File::Temp 'tempdir';
use Mojo::ByteStream 'b';
use Mojo::DeprecationTest;
Expand Down Expand Up @@ -422,7 +422,7 @@ my @files = map { catfile $lib, split '/' } (
'LoaderTest/A.pm', 'LoaderTest/B.pm',
'LoaderTest/C.pm'
);
is_deeply [files $lib], \@files, 'right files';
is_deeply [map { catfile splitdir $_ } files $lib], \@files, 'right files';

# steady_time
like steady_time, qr/^[\d.]+$/, 'high resolution time';
Expand Down

0 comments on commit d20f2a4

Please sign in to comment.