Skip to content

Commit

Permalink
test UPS pickup types
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmacaulay committed Dec 4, 2009
1 parent 18a1bfa commit 577c76b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/remote/ups_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -114,6 +114,26 @@ def test_ottawa_to_us_succeeds_with_only_zip
end end
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 def test_bare_packages
response = nil response = nil
p = Package.new(0,0) p = Package.new(0,0)
Expand Down

0 comments on commit 577c76b

Please sign in to comment.