Skip to content
Browse files

fix test plan

  • Loading branch information...
1 parent 7a6835d commit cd22da53fae0ac744731087f02b5b2e8f1678c61 @gray committed Sep 16, 2009
Showing with 4 additions and 2 deletions.
  1. +4 −2 xt/live.t
View
6 xt/live.t
@@ -1,12 +1,14 @@
use strict;
use warnings;
-use Encode;
use Geo::Coder::Mapquest;
-use Test::More tests => 2;
+use Test::More;
unless ($ENV{MAPQUEST_APIKEY}) {
plan skip_all => 'MAPQUEST_APIKEY environment variable must be set';
}
+else {
+ plan tests => 2;
+}
my $geocoder = Geo::Coder::Mapquest->new(apikey => $ENV{MAPQUEST_APIKEY});
{

0 comments on commit cd22da5

Please sign in to comment.
Something went wrong with that request. Please try again.