X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/783b5e3729228908d7404ae7404af1023501a906..7a1615bc55aee72dd03a5dd43c08b4f13f669f06:/test/controllers/api/old_ways_controller_test.rb diff --git a/test/controllers/api/old_ways_controller_test.rb b/test/controllers/api/old_ways_controller_test.rb index 73e968f30..cd676a960 100644 --- a/test/controllers/api/old_ways_controller_test.rb +++ b/test/controllers/api/old_ways_controller_test.rb @@ -13,6 +13,14 @@ module Api { :path => "/api/0.6/way/1/2", :method => :get }, { :controller => "api/old_ways", :action => "version", :id => "1", :version => "2" } ) + assert_routing( + { :path => "/api/0.6/way/1/history.json", :method => :get }, + { :controller => "api/old_ways", :action => "history", :id => "1", :format => "json" } + ) + assert_routing( + { :path => "/api/0.6/way/1/2.json", :method => :get }, + { :controller => "api/old_ways", :action => "version", :id => "1", :version => "2", :format => "json" } + ) assert_routing( { :path => "/api/0.6/way/1/2/redact", :method => :post }, { :controller => "api/old_ways", :action => "redact", :id => "1", :version => "2" }