]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/api/old_nodes_controller_test.rb
Add a rake task to move user avatars to Active Storage
[rails.git] / test / controllers / api / old_nodes_controller_test.rb
index 375a553b8fab2a266b3e840a9999fdd31c825c0e..0f8954541034c726d68c15b71462d9146fbeaf71 100644 (file)
@@ -156,8 +156,8 @@ module Api
     def check_not_found_id_version(id, version)
       get :version, :params => { :id => id, :version => version }
       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
 
     ##