]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/old_node_controller_test.rb
Added tests for old_* redaction routes
[rails.git] / test / functional / old_node_controller_test.rb
index 899e101f981e0bd8e636f9e0b9aa746377cb78fa..ff776d67f48cf07529c755a4e33cf901d2bb1322 100644 (file)
@@ -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
 
   ##