From 70cc313e1ee0bec9bc05e3cd101462149115e090 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 8 Jul 2009 15:48:54 -0700 Subject: [PATCH] Adjust test to match code. Only catch exceptions of WebGUI::Error type. --- t/Shop/ShipDriver/UPS.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/Shop/ShipDriver/UPS.t b/t/Shop/ShipDriver/UPS.t index f32afa38f..f57a52299 100644 --- a/t/Shop/ShipDriver/UPS.t +++ b/t/Shop/ShipDriver/UPS.t @@ -206,7 +206,7 @@ $properties = $driver->get(); $properties->{sourceCountry} = 'United States'; $driver->update($properties); eval { $driver->calculate() }; -$e = Exception::Class->caught(); +$e = WebGUI::Error->caught(); isa_ok($e, 'WebGUI::Error::InvalidParam', 'calculate throws an exception when no userId'); cmp_deeply( $e, @@ -346,7 +346,7 @@ $properties->{licenseNo} = $license; $properties->{sourceZip} = '97123'; $properties->{sourceCountry} = 'United States'; $properties->{shipService} = '03'; -$properties->{pickupCode} = '01'; +$properties->{pickupType} = '01'; $driver->update($properties); $driver->testMode(1);