Sha256: d000a7d36796ba16679dd3295ffe60e36cf04cc2d81878dcff2832783796d3df
Contents?: true
Size: 1.05 KB
Versions: 8
Compression:
Stored size: 1.05 KB
Contents
require File.join(File.dirname(__FILE__), "spec_helper.rb") describe Quickbooks::Parser::XMLParsing do #it "should set useful parsing constants" do #XML_DOCUMENT.should == Nokogiri::XML::Document #XML_NODE_SET.should == Nokogiri::XML::NodeSet #XML_NODE.should == Nokogiri::XML::Node #XML_ELEMENT.should == Nokogiri::XML::Element #XML_COMMENT= Nokogiri::XML::Comment #XML_TEXT.should == Nokogiri::XML::Text #end #describe "xml parsing helpers" do #before :each do #@klass = Nokogiri::XML::NodeSet #stub_child = stub(:class => XML_TEXT) #@stub_xml_node = stub(:name => "SomeNodeName", :children => [stub_child]) #@stub_xml_node.stub!(:is_a?).with(anything).and_return(false) #@stub_xml_node.stub!(:is_a?).with(XML_ELEMENT).and_return(true) #end #it "should check if a node is a leaf node" do #is_leaf_node?(@stub_xml_node).should be_true #end #end #it "should check if a class is already defined in a particular namespace" do #end #it "should cleanup qbxml" do #end end
Version data entries
8 entries across 8 versions & 1 rubygems