Permalink
Browse files

Merge pull request #73 from Shopify/fix_failing_canada_post_tests

Fix failing CanadaPost tests
  • Loading branch information...
2 parents baacf74 + 871235b commit 85a702550683e549001be3f885fcb7e015a0a575 @peterjm peterjm committed Mar 6, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/unit/carriers/canada_post_test.rb
@@ -96,15 +96,15 @@ def test_non_success_parse_rate_response
def test_turn_around_time_default
@carrier.expects(:commit).with do |request|
parsed_request = Hash.from_xml(request)
- parsed_request['eparcel']['turnAroundTime'] == "24"
+ parsed_request['eparcel']['ratesAndServicesRequest']['turnAroundTime'] == "24"
end
@carrier.find_rates(@origin, @destination, @line_items)
end
def test_turn_around_time
@carrier.expects(:commit).with do |request|
parsed_request = Hash.from_xml(request)
- parsed_request['eparcel']['turnAroundTime'] == "0"
+ parsed_request['eparcel']['ratesAndServicesRequest']['turnAroundTime'] == "0"
end
@carrier.find_rates(@origin, @destination, @line_items, :turn_around_time => 0)
end

0 comments on commit 85a7025

Please sign in to comment.