Created
August 18, 2008 18:56
-
-
Save miyagawa/6062 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: t/simple.t | |
=================================================================== | |
--- t/simple.t (revision 71) | |
+++ t/simple.t (working copy) | |
@@ -4,10 +4,12 @@ | |
use CGI; | |
use IO::Capture::Stdout; | |
use Test::More; | |
-eval 'use CPAN::Mini::Webserver; | |
-my $server = CPAN::Mini::Webserver->new(); | |
-$server->after_setup_listener; | |
-'; | |
+use CPAN::Mini::Webserver; | |
+ | |
+eval { | |
+ my $server = CPAN::Mini::Webserver->new(); | |
+ $server->after_setup_listener; | |
+}; | |
if ( $@ =~ /Please set up minicpan/ ) { | |
plan skip_all => "CPAN::Mini mirror must be installed for testing: $@"; | |
} else { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment