Sha256: c9f788914afd4b120e3bd6caec27489b6dfd328e27267584f8a143d683308bd6
Contents?: true
Size: 744 Bytes
Versions: 21
Compression:
Stored size: 744 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', "helper")) class TestBuilder < Nokogiri::TestCase #### # Modified def test_escaping_text doc = Nokogiri.Hpricot() { b "<a\"b>" } assert_equal "<b><a\"b></b>", doc.to_html.chomp assert_equal %{<a\"b>}, doc.at("text()").to_s end #### # Modified def test_no_escaping_text doc = Nokogiri.Hpricot() { div.test.me! { text "<a\"b>" } } assert_equal %{<div class="test" id="me"><a"b></div>}, doc.to_html.chomp assert_equal %{<a\"b>}, doc.at("text()").to_s end #### # Modified def test_latin1_entities doc = Nokogiri.Hpricot() { b "\200\225" } assert_equal "<b></b>", doc.to_html.chomp end end
Version data entries
21 entries across 21 versions & 2 rubygems