]> git.openstreetmap.org Git - rails.git/blobdiff - test/lib/bounding_box_test.rb
Allow space as a language separator
[rails.git] / test / lib / bounding_box_test.rb
index 4e962aedf32de441bce68890835b19395f4f7e3a..834d217cbbd66ff8216139ea5b12e1ab7612d870 100644 (file)
@@ -209,7 +209,7 @@ class BoundingBoxTest < ActiveSupport::TestCase
     end
   end
 
-  def test_bbox_area
+  def test_good_bbox_area
     @good_bbox.each do |string|
       bbox = BoundingBox.from_s(string)
       array = string.split(",")
@@ -217,6 +217,10 @@ class BoundingBoxTest < ActiveSupport::TestCase
     end
   end
 
+  def test_nil_bbox_area
+    assert_equal 0, @bbox_from_nils.area
+  end
+
   def test_complete
     assert !@bbox_from_nils.complete?, "should contain a nil"
     assert @bbox_from_string.complete?, "should not contain a nil"