]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/map_bugs_controller_test.rb
Use quad tiling to select bugs in an area
[rails.git] / test / functional / map_bugs_controller_test.rb
index 9aa155c3eb907502710dcd72db3c65e3ae00889c..ba47a007cdbe0b53d3d1510147ac64e97ab422c3 100644 (file)
@@ -79,10 +79,15 @@ class MapBugsControllerTest < ActionController::TestCase
   end
 
   def test_get_bugs_large_area_success
-    get :get_bugs, {:bbox=>'-10,-10,12,12'}
+    get :get_bugs, {:bbox=>'-2.5,-2.5,2.5,2.5'}
     assert_response :success
   end
 
+  def test_get_bugs_large_area_bad_request
+    get :get_bugs, {:bbox=>'-10,-10,12,12'}
+    assert_response :bad_request
+  end
+
   def test_get_bugs_closed_7_success
     get :get_bugs, {:bbox=>'1,1,1.2,1.2', :closed => '7'}
     assert_response :success