Sha256: 7c2c021143b9d160e6067acf2414dc80401a451799ff7f3a0dc1cf56f17a48be
Contents?: true
Size: 621 Bytes
Versions: 6
Compression:
Stored size: 621 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', "helper")) module Nokogiri module XML class TestProcessingInstruction < Nokogiri::TestCase def setup super @xml = Nokogiri::XML.parse(File.read(XML_FILE), XML_FILE) end def test_type assert_equal(Node::PI_NODE, @xml.children[0].type) end def test_name assert_equal 'TEST-STYLE', @xml.children[0].name end def test_new assert ref = ProcessingInstruction.new(@xml, 'name', 'content') assert_instance_of ProcessingInstruction, ref end end end end
Version data entries
6 entries across 6 versions & 1 rubygems