Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8271

Show
Ignore:
Timestamp:
12/05/07 02:34:36 (2 years ago)
Author:
david
Message:

Fix broken test (closes #10364) [chuyeow]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/test/controller/html-scanner/sanitizer_test.rb

    r8213 r8271  
    107107 
    108108  def test_should_allow_custom_tags_with_attributes 
    109     text = %(<fieldset foo="bar">foo</fieldset>) 
     109    text = %(<blockquote cite="http://example.com/">foo</blockquote>) 
     110    sanitizer = HTML::WhiteListSanitizer.new 
     111    assert_equal(text, sanitizer.sanitize(text)) 
     112  end 
     113 
     114  def test_should_allow_custom_tags_with_custom_attributes 
     115    text = %(<blockquote foo="bar">Lorem ipsum</blockquote>) 
    110116    sanitizer = HTML::WhiteListSanitizer.new 
    111117    assert_equal(text, sanitizer.sanitize(text, :attributes => ['foo']))