]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/geocoder_controller_test.rb
Merge remote-tracking branch 'upstream/pull/2296'
[rails.git] / test / controllers / geocoder_controller_test.rb
index 1a14351824129c64d56eee1785927d78eca6e813..f8a4eed1964e84fd44cd7ff31f9a0dbf6a2769cf 100644 (file)
@@ -236,9 +236,9 @@ class GeocoderControllerTest < ActionController::TestCase
   ##
   # Test identification of US zipcodes
   def test_identify_us_postcode
-    [
-      "12345",
-      "12345-6789"
+    %w[
+      12345
+      12345-6789
     ].each do |code|
       post :search, :params => { :query => code }
       assert_response :success