]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/old_ways_controller_test.rb
Pluralize old_ controllers
[rails.git] / 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 168ce87ddc9f8fdc0a32fc868f7f0cb003af75a0..0dd2d5e3c743ed20422d4dc771da137917e16671 100644 (file)
@@ -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