Procházet zdrojové kódy

skip spec test if we couldn't connect to googlecode.com

Gordon Child před 14 roky
rodič
revize
d3fcf918f6
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      t/03-spec-coverage.t

+ 2 - 1
t/03-spec-coverage.t

@@ -9,11 +9,12 @@ unless($ENV{RELEASE_TESTING}) {
 }
 
 eval {use LWP::Simple;};
-skip_all("need LWP::Simple") if $@;
+plan skip_all => "need LWP::Simple" if $@;
 use Selenium::Remote::Commands;
 
 my $uri  = "http://selenium.googlecode.com/svn/wiki/JsonWireProtocol.wiki";
 my $data = get($uri);
+plan skip_all => "need internet connection to run spec test" if !$data;
 
 my $todo_list = {
   'GET session/:sessionId/orientation'           => 1,