Navigation Menu

Skip to content

Commit

Permalink
use getcwd consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 13, 2016
1 parent 6d52202 commit 2f15e46
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

6.62 2016-05-09
6.62 2016-05-13
- Removed deprecated is_debug, is_error, is_info and is_warn methods from
Mojo::Log.
- Improved support for Ubuntu on Windows.
Expand Down
4 changes: 2 additions & 2 deletions t/mojo/home.t
Expand Up @@ -3,15 +3,15 @@ use Mojo::Base -strict;
BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }

use Test::More;
use Cwd qw(cwd realpath);
use Cwd qw(getcwd realpath);
use File::Spec::Functions qw(canonpath catdir catfile splitdir);
use FindBin;
use List::Util 'first';
use Mojo::HelloWorld;
use Mojo::Home;

# ENV detection
my $target = canonpath realpath cwd;
my $target = canonpath realpath getcwd;
{
local $ENV{MOJO_HOME} = '.';
my $home = Mojo::Home->new->detect;
Expand Down
4 changes: 2 additions & 2 deletions t/mojolicious/command.t
Expand Up @@ -3,7 +3,7 @@ use Mojo::Base -strict;
BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }

use Test::More;
use Cwd 'cwd';
use Cwd 'getcwd';
use File::Spec::Functions 'catdir';
use File::Temp 'tempdir';
use Mojolicious::Command;
Expand All @@ -14,7 +14,7 @@ isa_ok $command->app, 'Mojo', 'right application';
isa_ok $command->app, 'Mojolicious', 'right application';

# Generating files
my $cwd = cwd;
my $cwd = getcwd;
my $dir = tempdir CLEANUP => 1;
chdir $dir;
$command->create_rel_dir('foo/bar');
Expand Down
4 changes: 2 additions & 2 deletions t/mojolicious/commands.t
Expand Up @@ -10,7 +10,7 @@ use Test::More;
use FindBin;
use lib "$FindBin::Bin/lib";

use Cwd 'cwd';
use Cwd 'getcwd';
use File::Temp 'tempdir';

package Mojolicious::Command::my_fake_test_command;
Expand Down Expand Up @@ -239,7 +239,7 @@ require Mojolicious::Command::generate::app;
$app = Mojolicious::Command::generate::app->new;
ok $app->description, 'has a description';
like $app->usage, qr/app/, 'has usage information';
my $cwd = cwd;
my $cwd = getcwd;
my $dir = tempdir CLEANUP => 1;
chdir $dir;
$buffer = '';
Expand Down

0 comments on commit 2f15e46

Please sign in to comment.