X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=t%2F50-network.t;h=ef9b682f19aedaa0850f0fb47399d2d698939029;hb=6b226cbc28578ccf2072ec6e58599b50f3521327;hp=b940cc8d6f45bb744679d36de3b4084fb9421b94;hpb=de48830a28800ad0465048ce165b23a74a966265;p=www-offliberty.git diff --git a/t/50-network.t b/t/50-network.t index b940cc8..ef9b682 100644 --- a/t/50-network.t +++ b/t/50-network.t @@ -2,19 +2,13 @@ use strict; use warnings; -use Test::More; +use LWP::Online ':skip_all'; +use Test::More tests => 2; use WWW::Offliberty qw/off/; -if ($ENV{NETWORK_TEST}) { - plan tests => 2; +my @results; +@results = off "http://youtube.com/watch?v=Tj75Arhq5ho"; +is @results, 1, 'youtube'; - my @results; - - @results = off "http://youtube.com/watch?v=Tj75Arhq5ho"; - is @results, 1, 'youtube'; - - @results = off "http://youtube.com/watch?v=Tj75Arhq5ho", video_file => 1; - is @results, 2, 'youtube, video_file => 1'; -} else { - plan skip_all => '$ENV{NETWORK_TEST} not true'; -} +@results = off "http://youtube.com/watch?v=Tj75Arhq5ho", video_file => 1; +is @results, 2, 'youtube, video_file => 1';