X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/69c24009975fa03abf84397335043def82b33901..b7f306a437f1b0d6960cdafb348a5c15366ec53e:/test/functional/way_controller_test.rb diff --git a/test/functional/way_controller_test.rb b/test/functional/way_controller_test.rb index de23545f7..862e700a6 100644 --- a/test/functional/way_controller_test.rb +++ b/test/functional/way_controller_test.rb @@ -182,6 +182,16 @@ class WayControllerTest < ActionController::TestCase # expect failure assert_response :conflict, "way upload to closed changeset did not return 'conflict'" + + # create a way with a tag which is too long + content "" + + "" + + "" + + "" + put :create + # expect failure + assert_response :bad_request, + "way upload to with too long tag did not return 'bad_request'" end # -------------------------------------