]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/old_relations_controller_test.rb
Pluralize old_ controllers
[rails.git] / test / controllers / old_relations_controller_test.rb
similarity index 97%
rename from test/controllers/old_relation_controller_test.rb
rename to test/controllers/old_relations_controller_test.rb
index c6f43dbdc29d5f3a52bfa5174d71156a32b741ae..51e6c565a315d936a50e0684610517cab1d7b834 100644 (file)
@@ -1,21 +1,20 @@
 require "test_helper"
-require "old_relation_controller"
 
-class OldRelationControllerTest < ActionController::TestCase
+class OldRelationsControllerTest < ActionController::TestCase
   ##
   # test all routes which lead to this controller
   def test_routes
     assert_routing(
       { :path => "/api/0.6/relation/1/history", :method => :get },
-      { :controller => "old_relation", :action => "history", :id => "1" }
+      { :controller => "old_relations", :action => "history", :id => "1" }
     )
     assert_routing(
       { :path => "/api/0.6/relation/1/2", :method => :get },
-      { :controller => "old_relation", :action => "version", :id => "1", :version => "2" }
+      { :controller => "old_relations", :action => "version", :id => "1", :version => "2" }
     )
     assert_routing(
       { :path => "/api/0.6/relation/1/2/redact", :method => :post },
-      { :controller => "old_relation", :action => "redact", :id => "1", :version => "2" }
+      { :controller => "old_relations", :action => "redact", :id => "1", :version => "2" }
     )
   end