spec/xml_spec.rb in oxmlk-0.2.3 vs spec/xml_spec.rb in oxmlk-0.3.0

- old
+ new

@@ -36,34 +36,9 @@ data = File.open(@xml).read OxMlk::XML::Node.from(data).should be_a(OxMlk::XML::Node) end end -describe OxMlk::XML::Node, '#build' do - before(:all) do - @node = OxMlk::XML::Node - @nodes = [@node.new('one'),@node.new('two'),@node.new('three')] - @attributes = [[1,2],[3,4]] - @args = ['name',@nodes,@attributes] - end - - it 'should return a new node' do - @node.build(*@args).should be_a(@node) - end - - it 'should set its name to the first argument' do - @node.build(*@args).name.should == 'name' - end - - it 'should set its children to second argument' do - @node.build(*@args).children.should == @nodes - end - - it 'should set its attributes to the third argument' do - @node.build(*@args).should be_attributes - end -end - describe OxMlk::XML::Node, '#value' do before(:all) do @node = OxMlk::XML::Node.new('test') end \ No newline at end of file