X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/18f65b78ebe02d96861991880056c7abb07c299e..9ef7f3a2e7290af197230ee9a1c1241820d3613c:/test/controllers/api/ways_controller_test.rb diff --git a/test/controllers/api/ways_controller_test.rb b/test/controllers/api/ways_controller_test.rb index e9b2b4601..5bea98bbd 100644 --- a/test/controllers/api/ways_controller_test.rb +++ b/test/controllers/api/ways_controller_test.rb @@ -17,14 +17,6 @@ module Api { :path => "/api/0.6/ways", :method => :post }, { :controller => "api/ways", :action => "create" } ) - assert_routing( - { :path => "/api/0.6/way/1/full", :method => :get }, - { :controller => "api/ways", :action => "full", :id => "1" } - ) - assert_routing( - { :path => "/api/0.6/way/1/full.json", :method => :get }, - { :controller => "api/ways", :action => "full", :id => "1", :format => "json" } - ) assert_routing( { :path => "/api/0.6/way/1", :method => :get }, { :controller => "api/ways", :action => "show", :id => "1" } @@ -33,6 +25,14 @@ module Api { :path => "/api/0.6/way/1.json", :method => :get }, { :controller => "api/ways", :action => "show", :id => "1", :format => "json" } ) + assert_routing( + { :path => "/api/0.6/way/1/full", :method => :get }, + { :controller => "api/ways", :action => "full", :id => "1" } + ) + assert_routing( + { :path => "/api/0.6/way/1/full.json", :method => :get }, + { :controller => "api/ways", :action => "full", :id => "1", :format => "json" } + ) assert_routing( { :path => "/api/0.6/way/1", :method => :put }, { :controller => "api/ways", :action => "update", :id => "1" }