diff --git a/test/sanitizer_test.rb b/test/sanitizer_test.rb
index d266cd8..9651c94 100644
--- a/test/sanitizer_test.rb
+++ b/test/sanitizer_test.rb
@@ -58,11 +58,11 @@ def test_strip_tags_with_quote
end
def test_strip_invalid_html
- assert_equal "", full_sanitize("<<This is a test.
")
end
- def test_strip_tags_with_many_open_quotes
- assert_equal "", full_sanitize("<<")
+ def test_escape_tags_with_many_open_quotes
+ assert_equal "<<", full_sanitize("<<")
end
def test_strip_tags_with_sentence
@@ -123,7 +125,7 @@ def test_full_sanitize_respect_html_escaping_of_the_given_string
end
def test_strip_links_with_tags_in_tags
- expected = "a href='hello'>all day long/a>"
+ expected = "<a href='hello'>all day long</a>"
input = "<a href='hello'>all day long</a>"
assert_equal expected, link_sanitize(input)
end
@@ -360,7 +362,7 @@ def test_should_sanitize_invalid_script_tag
end
def test_should_sanitize_script_tag_with_multiple_open_brackets
- assert_sanitized %(<), "alert(\"XSS\");//"
+ assert_sanitized %(<), "<alert(\"XSS\");//<"
assert_sanitized %(