Skip to content

Commit

Permalink
fix test command
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 8, 2017
1 parent 01b77f7 commit ff1b7da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/Home.pm
Expand Up @@ -29,7 +29,7 @@ sub lib_dir {
# DEPRECATED!
sub list_files {
deprecated
'Mojo::Home::list_files is DEPRECATED in favor of Mojo::Util::files';
'Mojo::Home::list_files is DEPRECATED in favor of Mojo::Files::list_tree';
my ($self, $dir, $options) = (shift, shift // '', shift);
my $base = $self->child(split('/', $dir));
$base->list_tree($options)->map(sub { join '/', @{$_->to_rel($base)} })
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/test.pm
Expand Up @@ -13,7 +13,7 @@ sub run {

if (!@args && (my $tests = $self->app->home->child('t'))) {
die "Can't find test directory.\n" unless -d $tests;
/\.t$/ and push @args, $_ for $tests->list_tree->each;
@args = $tests->list_tree->grep(qr/\.t$/)->map('to_string')->each;
say qq{Running tests from "$tests".};
}

Expand Down

0 comments on commit ff1b7da

Please sign in to comment.