test/unit/carriers/ups_test.rb in active_shipping-1.1.2 vs test/unit/carriers/ups_test.rb in active_shipping-1.1.3

- old
+ new

@@ -19,9 +19,15 @@ assert_raises(ArgumentError) { UPS.new(:login => 'blah', :key => 'kee') } assert_raises(ArgumentError) { UPS.new(:password => 'bloo', :key => 'kee') } assert UPS.new(:login => 'blah', :password => 'bloo', :key => 'kee') end + def test_find_tracking_info_should_create_correct_xml + xml_request = xml_fixture('ups/access_request') + xml_fixture('ups/tracking_request') + @carrier.expects(:commit).with(:track, xml_request, true).returns(@tracking_response) + @carrier.find_tracking_info('1Z5FX0076803466397', :tracking_option => '03', :test => true) + end + def test_find_tracking_info_should_return_a_tracking_response @carrier.expects(:commit).returns(@tracking_response) assert_equal 'ActiveShipping::TrackingResponse', @carrier.find_tracking_info('1Z5FX0076803466397').class.name end