Selaa lähdekoodia

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

Gordon Child 14 vuotta sitten
vanhempi
sitoutus
d3fcf918f6
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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,