Skip to content

Commit 2a2a715

Browse files
committed
Fix deprecation warning from Minitest
1 parent 2e8a706 commit 2a2a715

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/sanitizer_test.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ def test_strip_unclosed_cdata
8787
end
8888

8989
def test_strip_blank_string
90-
[nil, '', ' '].each { |blank| assert_equal blank, full_sanitize(blank) }
90+
assert_nil full_sanitize(nil)
91+
assert_equal "", full_sanitize("")
92+
assert_equal " ", full_sanitize(" ")
9193
end
9294

9395
def test_strip_tags_with_plaintext

0 commit comments

Comments
 (0)