X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9bd634405b29b80df1101f07cea99e35e05cf961:/test/controllers/way_controller_test.rb..05117aa92835a65118754da4c0aa6f36096634ae:/test/controllers/ways_controller_test.rb diff --git a/test/controllers/way_controller_test.rb b/test/controllers/ways_controller_test.rb similarity index 98% rename from test/controllers/way_controller_test.rb rename to test/controllers/ways_controller_test.rb index 3d466de8b..1199e5d94 100644 --- a/test/controllers/way_controller_test.rb +++ b/test/controllers/ways_controller_test.rb @@ -1,33 +1,32 @@ require "test_helper" -require "way_controller" -class WayControllerTest < ActionController::TestCase +class WaysControllerTest < ActionController::TestCase ## # test all routes which lead to this controller def test_routes assert_routing( { :path => "/api/0.6/way/create", :method => :put }, - { :controller => "way", :action => "create" } + { :controller => "ways", :action => "create" } ) assert_routing( { :path => "/api/0.6/way/1/full", :method => :get }, - { :controller => "way", :action => "full", :id => "1" } + { :controller => "ways", :action => "full", :id => "1" } ) assert_routing( { :path => "/api/0.6/way/1", :method => :get }, - { :controller => "way", :action => "read", :id => "1" } + { :controller => "ways", :action => "read", :id => "1" } ) assert_routing( { :path => "/api/0.6/way/1", :method => :put }, - { :controller => "way", :action => "update", :id => "1" } + { :controller => "ways", :action => "update", :id => "1" } ) assert_routing( { :path => "/api/0.6/way/1", :method => :delete }, - { :controller => "way", :action => "delete", :id => "1" } + { :controller => "ways", :action => "delete", :id => "1" } ) assert_routing( { :path => "/api/0.6/ways", :method => :get }, - { :controller => "way", :action => "ways" } + { :controller => "ways", :action => "ways" } ) end