test/unit/carriers/shipwire_test.rb in active_shipping-1.8.3 vs test/unit/carriers/shipwire_test.rb in active_shipping-1.8.4

- old
+ new

@@ -21,11 +21,11 @@ ) end end def test_successfully_get_international_rates - date = DateTime.new(2011, 8, 1) + date = DateTime.parse("Mon 01 Aug 2011") @carrier.expects(:ssl_post).returns(xml_fixture('shipwire/international_rates_response')) Timecop.freeze(date) do response = @carrier.find_rates( location_fixtures[:ottawa], @@ -47,10 +47,10 @@ assert_equal [date + 1.day, date + 7.days], international.delivery_range end end def test_successfully_get_domestic_rates - date = DateTime.new(2011, 8, 1) + date = DateTime.parse("Mon 01 Aug 2011") @carrier.expects(:ssl_post).returns(xml_fixture('shipwire/rates_response')) Timecop.freeze(date) do response = @carrier.find_rates( location_fixtures[:ottawa],