test/remote/usps_test.rb in active_shipping-1.2.1 vs test/remote/usps_test.rb in active_shipping-1.2.2

- old
+ new

@@ -10,13 +10,14 @@ rescue NoCredentialsFound => e skip(e.message) end def test_tracking - skip '<#<ActiveShipping::ResponseError: There is no record of that mail item. If it was mailed recently, it may not yet be tracked. Please try again later.>>.' - - @carrier.find_tracking_info('EJ958083578US', :test => true) + response = @carrier.find_tracking_info('LN284529912US', :test => true) assert response.success?, response.message + assert_equal 9,response.shipment_events.size + assert_equal 'DELIVERED', response.shipment_events.last.message + assert_equal Time.parse('2015-06-01 13:36:00 UTC'), response.actual_delivery_date end def test_tracking_with_bad_number assert_raises(ResponseError) do @carrier.find_tracking_info('abc123xyz')