diff --git a/test/sanitizer_test.rb b/test/sanitizer_test.rb
index 8b0b7ab..5bf188e 100644
--- a/test/sanitizer_test.rb
+++ b/test/sanitizer_test.rb
@@ -14,13 +14,11 @@ def test_sanitizer_sanitize_raises_not_implemented_error
end
def test_sanitize_nested_script
- sanitizer = Rails::Html::SafeListSanitizer.new
- assert_equal '<script>alert("XSS");</script>', sanitizer.sanitize('alert("XSS");/', tags: %w(em))
+ assert_equal '<script>alert("XSS");</script>', safe_list_sanitize('alert("XSS");/', tags: %w(em))
end
def test_sanitize_nested_script_in_style
- sanitizer = Rails::Html::SafeListSanitizer.new
- assert_equal '<script>alert("XSS");</script>', sanitizer.sanitize('alert("XSS");/', tags: %w(em))
+ assert_equal '<script>alert("XSS");</script>', safe_list_sanitize('alert("XSS");/', tags: %w(em))
end
class XpathRemovalTestSanitizer < Rails::Html::Sanitizer