]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/geocoder_controller_test.rb
Don't show hidden notes to non-moderators in the user notes list
[rails.git] / test / controllers / geocoder_controller_test.rb
index 483c37dba57562589fa94acb4d3468c1d0881d59..bc75a9bfb529d981b5bc4ef41232d903e67b849a 100644 (file)
@@ -45,6 +45,16 @@ class GeocoderControllerTest < ActionController::TestCase
     )
   end
 
+  ##
+  # Test identification with no arguments
+  def test_identify_error
+    get :search
+    assert_response :bad_request
+
+    xhr :get, :search
+    assert_response :bad_request
+  end
+
   ##
   # Test identification of basic lat/lon pairs
   def test_identify_latlon_basic