From 3a622d0045771459e6d4cc32307f31f87e5b938a Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 5 Dec 2007 02:34:36 +0000 Subject: Fix broken test (closes #10364) [chuyeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8271 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/html-scanner/sanitizer_test.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'actionpack/test/controller/html-scanner/sanitizer_test.rb') diff --git a/actionpack/test/controller/html-scanner/sanitizer_test.rb b/actionpack/test/controller/html-scanner/sanitizer_test.rb index 9a7de9ad86..8fe9bbc5e8 100644 --- a/actionpack/test/controller/html-scanner/sanitizer_test.rb +++ b/actionpack/test/controller/html-scanner/sanitizer_test.rb @@ -106,7 +106,13 @@ class SanitizerTest < Test::Unit::TestCase end def test_should_allow_custom_tags_with_attributes - text = %(
foo
) + text = %(
foo
) + sanitizer = HTML::WhiteListSanitizer.new + assert_equal(text, sanitizer.sanitize(text)) + end + + def test_should_allow_custom_tags_with_custom_attributes + text = %(
Lorem ipsum
) sanitizer = HTML::WhiteListSanitizer.new assert_equal(text, sanitizer.sanitize(text, :attributes => ['foo'])) end -- cgit v1.2.3