Sha256: d806b09ce263c7a4b498149301742c3655728aa43abf3538565ec7fb82a2e6fb
Contents?: true
Size: 434 Bytes
Versions: 27
Compression:
Stored size: 434 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', "helper")) module Nokogiri module XML class TestBuilder < Nokogiri::TestCase def test_cdata builder = Nokogiri::XML::Builder.new do root { cdata "hello world" } end assert_equal("<?xml version=\"1.0\"?><root><![CDATA[hello world]]></root>", builder.to_xml.gsub(/\n/, '')) end end end end
Version data entries
27 entries across 27 versions & 2 rubygems