Explorar el Código

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

Gordon Child hace 14 años
padre
commit
d3fcf918f6
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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,