Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #73 from Shopify/fix_failing_canada_post_tests

Fix failing CanadaPost tests
  • Loading branch information...
commit 85a702550683e549001be3f885fcb7e015a0a575 2 parents baacf74 + 871235b
@peterjm peterjm authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/unit/carriers/canada_post_test.rb
View
4 test/unit/carriers/canada_post_test.rb
@@ -96,7 +96,7 @@ 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
@@ -104,7 +104,7 @@ def test_turn_around_time_default
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
Please sign in to comment.
Something went wrong with that request. Please try again.