Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test UPS pickup types

  • Loading branch information...
commit 577c76bb5ed714124b8295b3ab4d1267639a90ba 1 parent 18a1bfa
@jamesmacaulay jamesmacaulay authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 test/remote/ups_test.rb
View
20 test/remote/ups_test.rb
@@ -114,6 +114,26 @@ def test_ottawa_to_us_succeeds_with_only_zip
end
end
+ def test_us_to_uk_with_different_pickup_types
+ assert_nothing_raised do
+ daily_response = @carrier.find_rates(
+ @locations[:beverly_hills],
+ @locations[:london],
+ @packages.values_at(:book, :wii),
+ :pickup_type => :daily_pickup,
+ :test => true
+ )
+ one_time_response = @carrier.find_rates(
+ @locations[:beverly_hills],
+ @locations[:london],
+ @packages.values_at(:book, :wii),
+ :pickup_type => :one_time_pickup,
+ :test => true
+ )
+ assert_not_equal daily_response.rates.map(&:price), one_time_response.rates.map(&:price)
+ end
+ end
+
def test_bare_packages
response = nil
p = Package.new(0,0)
Please sign in to comment.
Something went wrong with that request. Please try again.