Skip to content

Commit

Permalink
use rel2abs in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 7, 2015
1 parent f964d19 commit 8d64f62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,5 +1,6 @@

6.07 2015-04-07
- Fixed Windows bug in "daemon.t".

6.06 2015-04-06
- Added element_count_is method to Test::Mojo. (Zoffix)
Expand Down
4 changes: 2 additions & 2 deletions t/mojo/daemon.t
Expand Up @@ -3,7 +3,7 @@ use Mojo::Base -strict;
BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }

use Test::More;
use File::Spec::Functions 'catdir';
use File::Spec::Functions qw(catdir rel2abs);
use FindBin;
use Mojo;
use Mojo::IOLoop;
Expand Down Expand Up @@ -79,7 +79,7 @@ is_deeply $app->config, {foo => 'bar', baz => 'yada', test => 23},
'right value';

# Script name
my $path = "$FindBin::Bin/lib/../lib/myapp.pl";
my $path = rel2abs "$FindBin::Bin/lib/../lib/myapp.pl";
is(Mojo::Server::Daemon->new->load_app($path)->config('script'),
$path, 'right script name');

Expand Down

0 comments on commit 8d64f62

Please sign in to comment.