diff --git a/test/unit/sanitize_test.rb b/test/unit/sanitize_test.rb
index 7a2fd813..db0d4bc2 100644
--- a/test/unit/sanitize_test.rb
+++ b/test/unit/sanitize_test.rb
@@ -40,6 +40,13 @@ class SanitizeTest < Test::Unit::TestCase
end
end
+ Sanitize::ALLOWED_PROTOCOLS.each do |protocol|
+ define_method "test_should_allow_#{protocol}_uris" do
+ assert_equal "foo",
+ sanitize_html(%(foo))
+ end
+ end
+
def test_should_allow_anchors
assert_equal "<script>baz</script>",
sanitize_html("")
@@ -72,7 +79,7 @@ class SanitizeTest < Test::Unit::TestCase
end
end
-[%(),
+ [%(),
%(),
%(),
%(),