From: Tom Hughes Date: Sun, 18 Feb 2024 18:45:22 +0000 (+0000) Subject: Include some XML special characters in the changeset feed comment test X-Git-Tag: live~778 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/81857a744613f3a9f3aa4fb1848e9a9768e174c7 Include some XML special characters in the changeset feed comment test --- diff --git a/test/controllers/changesets_controller_test.rb b/test/controllers/changesets_controller_test.rb index 778a6024c..dba7642c4 100644 --- a/test/controllers/changesets_controller_test.rb +++ b/test/controllers/changesets_controller_test.rb @@ -254,9 +254,11 @@ class ChangesetsControllerTest < ActionDispatch::IntegrationTest check_feed_result([closed_changeset, changeset]) end + ## + # This should correctly escape XML special characters in the comment def test_feed_with_comment_tag changeset = create(:changeset, :num_changes => 1) - create(:changeset_tag, :changeset => changeset, :k => "comment", :v => "tested-changeset-comment") + create(:changeset_tag, :changeset => changeset, :k => "comment", :v => "testedcomment") get history_feed_path(:format => :atom) assert_response :success