]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/api/old_nodes_controller_test.rb
Merge branch 'master' into patch/view_migration
[rails.git] / test / controllers / api / old_nodes_controller_test.rb
index e43707245f8461e6984bcedcf01fcf2c16cf7909..c94a4bb1d1a61f7caa6074aca1d8e2f00c567ede 100644 (file)
@@ -156,8 +156,8 @@ module Api
     def check_not_found_id_version(id, version)
       get :version, :params => { :id => id, :version => version }, :format => :xml
       assert_response :not_found
-    rescue ActionController::UrlGenerationError => ex
-      assert_match(/No route matches/, ex.to_s)
+    rescue ActionController::UrlGenerationError => e
+      assert_match(/No route matches/, e.to_s)
     end
 
     ##