Test and fix for issue #1568. Wasn't testing for end element in the right place.
This commit is contained in:
parent
c54471ee33
commit
12b779f0b4
2 changed files with 20 additions and 2 deletions
|
@ -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"
|
||||
|
||||
[ "<osmChange/>",
|
||||
"<osmChange></osmChange>",
|
||||
"<osmChange><modify/></osmChange>",
|
||||
"<osmChange><modify></modify></osmChange>"
|
||||
].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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue