Skip to content

Commit

Permalink
Include some XML special characters in the changeset feed comment test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Feb 18, 2024
1 parent bf81e53 commit 81857a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/controllers/changesets_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,11 @@ def test_feed
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
Expand Down

0 comments on commit 81857a7

Please sign in to comment.