]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/geocoder_controller_test.rb
Fix some rubocop warnings
[rails.git] / test / controllers / geocoder_controller_test.rb
index 483c37dba57562589fa94acb4d3468c1d0881d59..7899bd982421caad81401ad8bbe4f537786ef602 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
@@ -436,7 +446,7 @@ class GeocoderControllerTest < ActionController::TestCase
       xhr :get, :search_osm_nominatim_reverse, :lat => 51.7632, :lon => -0.0076, :zoom => 17
       results_check :name => "Dinant Link Road, Broxbourne, Hertfordshire, East of England, England, EN11 8HX, United Kingdom",
                     :lat => 51.7634883, :lon => -0.0088373,
-                    :type => "way", :id => 3489841, :zoom  => 17
+                    :type => "way", :id => 3489841, :zoom => 17
     end
   end