Author: bob Date: 2012-04-03 14:49:39 +0100 (Tue, 03 Apr 2012) New Revision: 1322
Modified: branches/rel_0_66/t/69_bug_zero_geo.t Log: Geo::Coordinates::ITM is not installed by default so skip tests.
Modified: branches/rel_0_66/t/69_bug_zero_geo.t =================================================================== --- branches/rel_0_66/t/69_bug_zero_geo.t 2012-04-03 13:48:52 UTC (rev 1321) +++ branches/rel_0_66/t/69_bug_zero_geo.t 2012-04-03 13:49:39 UTC (rev 1322) @@ -50,7 +50,9 @@
is( @{$details{metadata}->{os_x}}[0], 0, "Zero os_x saved" ); is( @{$details{metadata}->{os_y}}[0], 0, "Zero os_y saved" ); - +SKIP: { + eval { require Geo::Coordinates::ITM; }; + skip "Geo::Coordinates::ITM is not installed", 2 if $@; $config->{geo_handler} = 2;
Wiki::Toolkit::Setup::SQLite::cleardb( { dbname => "t/node.db" } ); @@ -74,7 +76,7 @@
is( @{$details{metadata}->{osie_x}}[0], 0, "Zero osie_x saved" ); is( @{$details{metadata}->{osie_y}}[0], 0, "Zero osie_y saved" ); - +} $config->{geo_handler} = 3;
Wiki::Toolkit::Setup::SQLite::cleardb( { dbname => "t/node.db" } );
openguides-commits@lists.openguides.org