]> git.openstreetmap.org Git - rails.git/commitdiff
Include some XML special characters in the changeset feed comment test
authorTom Hughes <tom@compton.nu>
Sun, 18 Feb 2024 18:45:22 +0000 (18:45 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 18 Feb 2024 18:45:22 +0000 (18:45 +0000)
test/controllers/changesets_controller_test.rb

index 778a6024c883d96d8aa30c9d23234d8898e6b1f4..dba7642c414b7f603e54d1a4cef829de9520a3a3 100644 (file)
@@ -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 => "tested<changeset>comment")
 
     get history_feed_path(:format => :atom)
     assert_response :success