Skip to content

Commit

Permalink
Merge pull request #48315 from flavorjones/flavorjones-remove-coupled…
Browse files Browse the repository at this point in the history
…-rhs-tests

Remove Action View Sanitizer Helper tests asserting on allowed tags and attributes
  • Loading branch information
rafaelfranca committed May 28, 2023
1 parent 7c96ecd commit 07fdcbd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions actionview/test/template/sanitize_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,4 @@ def test_strip_tags_is_marked_safe
def test_sanitize_is_marked_safe
assert_predicate sanitize("<html><script></script></html>"), :html_safe?
end

def test_sanitized_allowed_tags_class_method
expected = Set.new(["strong", "em", "b", "i", "p", "code", "pre", "tt", "samp", "kbd", "var",
"sub", "sup", "dfn", "cite", "big", "small", "address", "hr", "br", "div", "span", "h1", "h2",
"h3", "h4", "h5", "h6", "ul", "ol", "li", "dl", "dt", "dd", "abbr", "acronym", "a", "img",
"blockquote", "del", "ins"])
assert_equal(expected, self.class.sanitized_allowed_tags)
end

def test_sanitized_allowed_attributes_class_method
expected = Set.new(["href", "src", "width", "height", "alt", "cite", "datetime", "title", "class", "name", "xml:lang", "abbr"])
assert_equal(expected, self.class.sanitized_allowed_attributes)
end
end

0 comments on commit 07fdcbd

Please sign in to comment.