test/unit/location_test.rb in active_shipping-1.7.1 vs test/unit/location_test.rb in active_shipping-1.7.2
- old
+ new
@@ -123,6 +123,13 @@
assert_equal 'Apt 613, Victory Lane', location.address2_and_3
location = Location.from(:address3 => address3)
assert_equal 'Victory Lane', location.address2_and_3
end
+
+ def test_equality
+ location_1 = location_fixtures[:ottawa]
+ location_2 = Location.from(location_1.to_hash)
+
+ assert_equal location_1, location_2
+ end
end