X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/05117aa92835a65118754da4c0aa6f36096634ae:/test/controllers/old_way_controller_test.rb..e85c56d151a88a69f878ce4ed5bfdf4bbe695fbb:/test/controllers/old_ways_controller_test.rb diff --git a/test/controllers/old_way_controller_test.rb b/test/controllers/old_ways_controller_test.rb similarity index 97% rename from test/controllers/old_way_controller_test.rb rename to test/controllers/old_ways_controller_test.rb index 168ce87dd..0dd2d5e3c 100644 --- a/test/controllers/old_way_controller_test.rb +++ b/test/controllers/old_ways_controller_test.rb @@ -1,21 +1,20 @@ require "test_helper" -require "old_way_controller" -class OldWayControllerTest < ActionController::TestCase +class OldWaysControllerTest < ActionController::TestCase ## # test all routes which lead to this controller def test_routes assert_routing( { :path => "/api/0.6/way/1/history", :method => :get }, - { :controller => "old_way", :action => "history", :id => "1" } + { :controller => "old_ways", :action => "history", :id => "1" } ) assert_routing( { :path => "/api/0.6/way/1/2", :method => :get }, - { :controller => "old_way", :action => "version", :id => "1", :version => "2" } + { :controller => "old_ways", :action => "version", :id => "1", :version => "2" } ) assert_routing( { :path => "/api/0.6/way/1/2/redact", :method => :post }, - { :controller => "old_way", :action => "redact", :id => "1", :version => "2" } + { :controller => "old_ways", :action => "redact", :id => "1", :version => "2" } ) end