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

Version Path
tenderlove-nokogiri-0.0.0-x86-mswin32-60 test/xml/test_builder.rb
tenderlove-nokogiri-0.0.0.20081001111445 test/xml/test_builder.rb
nokogiri-1.0.0-x86-mswin32-60 test/xml/test_builder.rb
nokogiri-1.0.0 test/xml/test_builder.rb
nokogiri-1.0.1 test/xml/test_builder.rb
nokogiri-1.0.3-x86-mswin32-60 test/xml/test_builder.rb
nokogiri-1.0.2 test/xml/test_builder.rb
nokogiri-1.0.4-x86-mswin32-60 test/xml/test_builder.rb
nokogiri-1.0.3 test/xml/test_builder.rb
nokogiri-1.0.4 test/xml/test_builder.rb
nokogiri-1.0.5-x86-mswin32-60 test/xml/test_builder.rb
nokogiri-1.0.5 test/xml/test_builder.rb
nokogiri-1.0.6 test/xml/test_builder.rb
nokogiri-1.0.6-x86-mswin32-60 test/xml/test_builder.rb
nokogiri-1.0.7-x86-mswin32-60 test/xml/test_builder.rb
nokogiri-1.1.0-x86-mswin32-60 test/xml/test_builder.rb
nokogiri-1.0.7 test/xml/test_builder.rb
nokogiri-1.1.0 test/xml/test_builder.rb
nokogiri-1.1.1-java test/xml/test_builder.rb
nokogiri-1.1.1-x86-mswin32-60 test/xml/test_builder.rb