From c658e84535ef88aeb31f86039662a1be42e048d5 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 19 Dec 2017 17:43:53 +0000 Subject: [PATCH] Fix tests that only worked if object 400 didn't exist --- test/controllers/node_controller_test.rb | 2 +- test/controllers/relation_controller_test.rb | 2 +- test/controllers/way_controller_test.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/controllers/node_controller_test.rb b/test/controllers/node_controller_test.rb index 1fdb3f907..42b63bdf6 100644 --- a/test/controllers/node_controller_test.rb +++ b/test/controllers/node_controller_test.rb @@ -455,7 +455,7 @@ class NodeControllerTest < ActionController::TestCase 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 diff --git a/test/controllers/relation_controller_test.rb b/test/controllers/relation_controller_test.rb index f90b6b58e..8a7e8b2fe 100644 --- a/test/controllers/relation_controller_test.rb +++ b/test/controllers/relation_controller_test.rb @@ -188,7 +188,7 @@ class RelationControllerTest < ActionController::TestCase 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 diff --git a/test/controllers/way_controller_test.rb b/test/controllers/way_controller_test.rb index 285efe269..3d466de8b 100644 --- a/test/controllers/way_controller_test.rb +++ b/test/controllers/way_controller_test.rb @@ -105,7 +105,7 @@ class WayControllerTest < ActionController::TestCase 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 -- 2.43.2