Sha256: 1fa73248713c067f1992726bbad701bc0f72e0a2ff4a37d6407c8a420b90f0c4
Contents?: true
Size: 422 Bytes
Versions: 2
Compression:
Stored size: 422 Bytes
Contents
require 'xml' require 'test/unit' class TestTextNode < Test::Unit::TestCase def test_content node = XML::Node.new_text('testdata') assert_instance_of(XML::Node, node) assert_equal('testdata', node.content) end def test_invalid_content error = assert_raise(TypeError) do node = XML::Node.new_text(nil) end assert_equal('wrong argument type nil (expected String)', error.to_s) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-0.9.7-x86-mswin32-60 | test/tc_node_text.rb |
libxml-ruby-0.9.7 | test/tc_node_text.rb |