require File.expand_path(File.join(File.dirname(__FILE__), '..', "helper"))
class TestBuilder < Nokogiri::TestCase
####
# Modified
def test_escaping_text
doc = Nokogiri() { b "" }
assert_match "<a\"b>", doc.to_html.chomp
assert_equal %{<a\"b>}, doc.at("text()").to_s
end
####
# Modified
def test_no_escaping_text
doc = Nokogiri() { div.test.me! { text "" } }
assert_match %{<a"b>
},
doc.to_html.chomp
assert_equal %{<a\"b>}, doc.at("text()").to_s
end
end