Skip to content

Commit

Permalink
Fix deprecation warning from Minitest
Browse files Browse the repository at this point in the history
  • Loading branch information
fschwahn committed May 5, 2017
1 parent 2e8a706 commit 2a2a715
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/sanitizer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ def test_strip_unclosed_cdata
end

def test_strip_blank_string
[nil, '', ' '].each { |blank| assert_equal blank, full_sanitize(blank) }
assert_nil full_sanitize(nil)
assert_equal "", full_sanitize("")
assert_equal " ", full_sanitize(" ")
end

def test_strip_tags_with_plaintext
Expand Down

0 comments on commit 2a2a715

Please sign in to comment.