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

Ticket #9730: strip_tags_failing_test.patch

File strip_tags_failing_test.patch, 0.6 kB (added by joevandyk, 9 months ago)

Failing test

  • actionpack/test/template/text_helper_test.rb

    old new  
    537537  end 
    538538 
    539539  def test_strip_tags 
     540    assert_equal("bad html", strip_tags("<<<bad html")) 
    540541    assert_equal("Dont touch me", strip_tags("Dont touch me")) 
    541542    assert_equal("This is a test.", strip_tags("<p>This <u>is<u> a <a href='test.html'><strong>test</strong></a>.</p>")) 
    542543    assert_equal("Weirdos", strip_tags("Wei<<a>a onclick='alert(document.cookie);'</a>/>rdos"))