Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adds index_cpantesters() to MetaCPAN::TestServer.
  • Loading branch information
oalders committed Aug 19, 2015
1 parent ec2dc63 commit da2425f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions t/lib/MetaCPAN/TestServer.pm
Expand Up @@ -170,5 +170,19 @@ sub index_authors {
'index authors' );
}

# Right now this test requires you to have an internet connection. If we can
# get a sample db then we can run this with the '--skip-download' option.

sub index_cpantesters {
my $self = shift;

local @ARGV = ('cpantesters');
ok(
MetaCPAN::Script::CPANTesters->new_with_options( $self->_config )
->run,
'index authors'
);
}

__PACKAGE__->meta->make_immutable();
1;

0 comments on commit da2425f

Please sign in to comment.