Skip to content

Commit 6430097

Browse files
author
Rafael Mendonça França
committed
Fix false possitive test
This test was passing because the assert_dom_equal was only comparing the top level tag. This bug was fixed at rails/rails-dom-testing@c06500c and released as rails-dom-testing 1.0.3
1 parent 6b14d6a commit 6430097

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sanitizer_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def test_sanitize_image_src
173173
end
174174

175175
def test_should_allow_anchors
176-
assert_sanitized %(<a href="foo" onclick="bar"><script>baz</script></a>), %(<a href=\"foo\">baz</a>)
176+
assert_sanitized %(<a href="foo" onclick="bar"><script>baz</script></a>), %(<a href=\"foo\"></a>)
177177
end
178178

179179
def test_video_poster_sanitization

0 commit comments

Comments
 (0)