Skip to content

Commit

Permalink
ws
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelramsay committed Nov 26, 2010
1 parent 272e146 commit d9360fb
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions test/remote/new_zealand_post_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ def test_valid_credentials
end

def test_successful_rates_request
response = @carrier.find_rates(
@locations[:wellington],
@locations[:wellington],
@packages.values_at(:book, :wii))
response = @carrier.find_rates(@locations[:wellington],
@locations[:wellington],
@packages.values_at(:book, :wii))

assert response.is_a?(RateResponse)
assert response.success?
Expand All @@ -26,10 +25,9 @@ def test_successful_rates_request

def test_failure_rates_request
begin
@carrier.find_rates(
@locations[:wellington],
@locations[:wellington],
@packages[:shipping_container])
@carrier.find_rates(@locations[:wellington],
@locations[:wellington],
@packages[:shipping_container])

flunk "expected an ActiveMerchant::Shipping::ResponseError to be raised"
rescue ActiveMerchant::Shipping::ResponseError => e
Expand Down

0 comments on commit d9360fb

Please sign in to comment.