]> git.openstreetmap.org Git - rails.git/commitdiff
Fix tests that only worked if object 400 didn't exist
authorTom Hughes <tom@compton.nu>
Tue, 19 Dec 2017 17:43:53 +0000 (17:43 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 19 Dec 2017 17:43:53 +0000 (17:43 +0000)
test/controllers/node_controller_test.rb
test/controllers/relation_controller_test.rb
test/controllers/way_controller_test.rb

index 1fdb3f90728c92b88615b483a7e206653f454dfb..42b63bdf64910678dfa0c103aeff4ffe3f784ce4 100644 (file)
@@ -455,7 +455,7 @@ class NodeControllerTest < ActionController::TestCase
     end
 
     # check error when a non-existent node is included
     end
 
     # check error when a non-existent node is included
-    get :nodes, :params => { :nodes => "#{node1.id},#{node2.id},#{node3.id},#{node4.id},#{node5.id},400" }
+    get :nodes, :params => { :nodes => "#{node1.id},#{node2.id},#{node3.id},#{node4.id},#{node5.id},0" }
     assert_response :not_found
   end
 
     assert_response :not_found
   end
 
index f90b6b58e6562f29bb9e8139440977a8069d2dc6..8a7e8b2fe2b6bcf212c804e19ace3df7475e8efd 100644 (file)
@@ -188,7 +188,7 @@ class RelationControllerTest < ActionController::TestCase
     end
 
     # check error when a non-existent relation is included
     end
 
     # check error when a non-existent relation is included
-    get :relations, :params => { :relations => "#{relation1.id},#{relation2.id},#{relation3.id},#{relation4.id},400" }
+    get :relations, :params => { :relations => "#{relation1.id},#{relation2.id},#{relation3.id},#{relation4.id},0" }
     assert_response :not_found
   end
 
     assert_response :not_found
   end
 
index 285efe2691637cffab638d118f73dd1d34579c3d..3d466de8bbfca3893c9182173b7255c8f1f81e8b 100644 (file)
@@ -105,7 +105,7 @@ class WayControllerTest < ActionController::TestCase
     end
 
     # check error when a non-existent way is included
     end
 
     # check error when a non-existent way is included
-    get :ways, :params => { :ways => "#{way1.id},#{way2.id},#{way3.id},#{way4.id},400" }
+    get :ways, :params => { :ways => "#{way1.id},#{way2.id},#{way3.id},#{way4.id},0" }
     assert_response :not_found
   end
 
     assert_response :not_found
   end