lib/active_shipping/carriers/ups.rb in active_shipping-1.0.0.pre2 vs lib/active_shipping/carriers/ups.rb in active_shipping-1.0.0.pre3
- old
+ new
@@ -110,18 +110,18 @@
origin, destination = upsified_location(origin), upsified_location(destination)
options = @options.merge(options)
packages = Array(packages)
access_request = build_access_request
rate_request = build_rate_request(origin, destination, packages, options)
- response = commit(:rates, save_request(access_request + rate_request), (options[:test] || false))
+ response = commit(:rates, save_request(access_request + rate_request), options[:test])
parse_rate_response(origin, destination, packages, response, options)
end
def find_tracking_info(tracking_number, options = {})
options = @options.update(options)
access_request = build_access_request
tracking_request = build_tracking_request(tracking_number, options)
- response = commit(:track, save_request(access_request + tracking_request), (options[:test] || false))
+ response = commit(:track, save_request(access_request + tracking_request), options[:test])
parse_tracking_response(response, options)
end
def create_shipment(origin, destination, packages, options = {})
options = @options.merge(options)