Sha256: ac4a26acdc14f0fe5b0ae3006fdd422c3317f5635d45525f08c96bce2366e75e

Contents?: true

Size: 692 Bytes

Versions: 1

Compression:

Stored size: 692 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/more/xmlbuilder.rb
#
# Extracted Tue Jul 25 10:07:15 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/more/xmlbuilder.rb'


  require 'test/unit'

  class TCXMLBuilder < Test::Unit::TestCase

    def test_01
      x = XMLBuilder.new
      doc = x.html {
        x.head {
          x.title "Test"
        }
        x.body {
          x.p "Hello"
          x.out.text "Test"
        }
      }
      r = "<html><head><title>Test</title></head><body><p>Hello</p>Test</body></html>"
      assert_equal( r, doc )
      assert_equal( r, x.to_s )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.0 test/lib/facets/more/test_xmlbuilder.rb