X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c54471ee33f79b7119eb284b03a845813a058876..12b779f0b4ad730d42f3042da5da387bc288f929:/test/functional/changeset_controller_test.rb diff --git a/test/functional/changeset_controller_test.rb b/test/functional/changeset_controller_test.rb index 4669df07d..b5d65d46d 100644 --- a/test/functional/changeset_controller_test.rb +++ b/test/functional/changeset_controller_test.rb @@ -530,6 +530,24 @@ EOF "shouldn't be able to re-use placeholder IDs" end + ## + # test for more issues in #1568 + def test_upload_empty_invalid + basic_authorization "test@openstreetmap.org", "test" + + [ "", + "", + "", + "" + ].each do |diff| + # upload it + content diff + post :upload, :id => 1 + assert_response(:success, "should be able to upload " + + "empty changeset: " + diff) + end + end + ## # when we make some simple changes we get the same changes back from the # diff download.