test/unit/carriers/ups_test.rb in active_shipping-1.2.2 vs test/unit/carriers/ups_test.rb in active_shipping-1.3.0

- old
+ new

@@ -504,6 +504,17 @@ :test => true } ) assert_equal ["UPS Ground"], response.rates.map(&:service_name) end + + def test_void_shipment + mock_response = xml_fixture("ups/void_shipment_response") + @carrier.expects(:commit).returns(mock_response) + response = @carrier.void_shipment('1Z12345E0390817264') + assert response + end + + def test_maximum_address_field_length + assert_equal 35, @carrier.maximum_address_field_length + end end