X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/990f3eba4069f98a11d98f18b18d0e35bcf295f4..ec6f14df0ce68192b9815a3895d1cc2737f23b6b:/test/functional/old_node_controller_test.rb diff --git a/test/functional/old_node_controller_test.rb b/test/functional/old_node_controller_test.rb index 899e101f9..44edc06a2 100644 --- a/test/functional/old_node_controller_test.rb +++ b/test/functional/old_node_controller_test.rb @@ -19,6 +19,10 @@ class OldNodeControllerTest < ActionController::TestCase { :path => "/api/0.6/node/1/2", :method => :get }, { :controller => "old_node", :action => "version", :id => "1", :version => "2" } ) + assert_routing( + { :path => "/api/0.6/node/1/2/redact", :method => :post }, + { :controller => "old_node", :action => "redact", :id => "1", :version => "2" } + ) end ## @@ -152,6 +156,8 @@ class OldNodeControllerTest < ActionController::TestCase def check_not_found_id_version(id, version) get :version, :id => id, :version => version assert_response :not_found + rescue ActionController::RoutingError => ex + assert_match /No route matches/, ex.to_s end ##