Skip to content

Commit

Permalink
Merge pull request #45074 from p8/ci/fix-6-1-stable-build
Browse files Browse the repository at this point in the history
Fix some 6-1-stable tests for Ruby 2.5 and 2.6
  • Loading branch information
byroot authored and eileencodes committed Jul 12, 2022
1 parent cdfcc26 commit 193c444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionview/test/template/tag_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ def test_tag_with_dangerous_unknown_attribute_name
def test_tag_builder_with_dangerous_unknown_attribute_name
escaped_dangerous_chars = "_" * COMMON_DANGEROUS_CHARS.size
assert_equal "<the-name #{escaped_dangerous_chars}=\"the value\"></the-name>",
tag.public_send(:"the-name", COMMON_DANGEROUS_CHARS => "the value")
tag.public_send(:"the-name", COMMON_DANGEROUS_CHARS.to_sym => "the value")

assert_equal "<the-name #{COMMON_DANGEROUS_CHARS}=\"the value\"></the-name>",
tag.public_send(:"the-name", COMMON_DANGEROUS_CHARS => "the value", escape: false)
tag.public_send(:"the-name", COMMON_DANGEROUS_CHARS.to_sym => "the value", escape: false)
end

def test_content_tag
Expand Down

0 comments on commit 193c444

Please sign in to comment.