Skip to content
Browse files

Fix broken test (closes #10364) [chuyeow]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8271 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent a5fded3 commit 3a622d0045771459e6d4cc32307f31f87e5b938a @dhh dhh committed Dec 5, 2007
Showing with 7 additions and 1 deletion.
  1. +7 −1 actionpack/test/controller/html-scanner/sanitizer_test.rb
View
8 actionpack/test/controller/html-scanner/sanitizer_test.rb
@@ -106,7 +106,13 @@ def test_should_allow_only_custom_tags
end
def test_should_allow_custom_tags_with_attributes
- text = %(<fieldset foo="bar">foo</fieldset>)
+ text = %(<blockquote cite="http://example.com/">foo</blockquote>)
+ sanitizer = HTML::WhiteListSanitizer.new
+ assert_equal(text, sanitizer.sanitize(text))
+ end
+
+ def test_should_allow_custom_tags_with_custom_attributes
+ text = %(<blockquote foo="bar">Lorem ipsum</blockquote>)
sanitizer = HTML::WhiteListSanitizer.new
assert_equal(text, sanitizer.sanitize(text, :attributes => ['foo']))
end

0 comments on commit 3a622d0

Please sign in to comment.
Something went wrong with that request. Please try again.