X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/69c24009975fa03abf84397335043def82b33901..b7f306a437f1b0d6960cdafb348a5c15366ec53e:/test/functional/node_controller_test.rb diff --git a/test/functional/node_controller_test.rb b/test/functional/node_controller_test.rb index 396a66710..3bebace8d 100644 --- a/test/functional/node_controller_test.rb +++ b/test/functional/node_controller_test.rb @@ -91,6 +91,12 @@ class NodeControllerTest < ActionController::TestCase assert_response :bad_request, "node upload did not return bad_request status" assert_equal "Cannot parse valid node from xml string . lon missing", @response.body + # test that the upload is rejected when we have a tag which is too long + content("") + put :create + assert_response :bad_request, "node upload did not return bad_request status" + assert_equal "Node has a tag with too long a value, 'foo'='#{'x'*256}'.", @response.body + end def test_read