From 464d0c2850e90fad5f5da05ad33a046eadad6803 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Tue, 15 Sep 2009 04:12:17 -0500 Subject: [PATCH] correct test quantity for USPS ship driver --- t/Shop/ShipDriver/USPS.t | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/t/Shop/ShipDriver/USPS.t b/t/Shop/ShipDriver/USPS.t index ddb6087ff..fa63039dc 100644 --- a/t/Shop/ShipDriver/USPS.t +++ b/t/Shop/ShipDriver/USPS.t @@ -24,6 +24,10 @@ use Data::Dumper; use WebGUI::Test; # Must use this before any other WebGUI modules use WebGUI::Session; +plan tests => 46; +use_ok('WebGUI::Shop::ShipDriver::USPS') + or die 'Unable to load module WebGUI::Shop::ShipDriver::USPS'; + #---------------------------------------------------------------------------- # Init my $session = WebGUI::Test->session; @@ -34,13 +38,9 @@ $session->user({user => $user}); #---------------------------------------------------------------------------- # Tests -my $tests = 41; -plan tests => 1 + $tests; - #---------------------------------------------------------------------------- # put your tests here -my $loaded = use_ok('WebGUI::Shop::ShipDriver::USPS'); my $storage; my ($driver, $cart); @@ -95,10 +95,6 @@ my $nivBible = $bible->setCollateral('variantsJSON', 'variantId', 'new', $versionTag->commit; WebGUI::Test->tagsToRollback($versionTag); -SKIP: { - -skip 'Unable to load module WebGUI::Shop::ShipDriver::USPS', $tests unless $loaded; - ####################################################################### # # definition @@ -759,8 +755,6 @@ SKIP: { } -} - #---------------------------------------------------------------------------- # Cleanup END {