]> git.openstreetmap.org Git - rails.git/blobdiff - test/lib/bounding_box_test.rb
User factory associations for all factories.
[rails.git] / test / lib / bounding_box_test.rb
index 5fb81a4cb88d6a2180f383a1269170f86a239cf9..dc62531f532414ec885c9d72e8a3d5efc1b80716 100644 (file)
@@ -312,9 +312,9 @@ class BoundingBoxTest < ActiveSupport::TestCase
   end
 
   def check_bbox(bbox, result)
-    assert_equal result[0], bbox.min_lon, "min_lon"
-    assert_equal result[1], bbox.min_lat, "min_lat"
-    assert_equal result[2], bbox.max_lon, "max_lon"
-    assert_equal result[3], bbox.max_lat, "max_lat"
+    assert_equal_allowing_nil result[0], bbox.min_lon, "min_lon"
+    assert_equal_allowing_nil result[1], bbox.min_lat, "min_lat"
+    assert_equal_allowing_nil result[2], bbox.max_lon, "max_lon"
+    assert_equal_allowing_nil result[3], bbox.max_lat, "max_lat"
   end
 end