require_relative '../../../../spec_helper' require 'rexml/document' describe :rexml_attribute_length, shared: true do it "returns the number of attributes" do e = REXML::Element.new("root") e.attributes.send(@method).should == 0 e.attributes << REXML::Attribute.new("name", "John") e.attributes << REXML::Attribute.new("another_name", "Leo") e.attributes.send(@method).should == 2 end end s='main'>index : ruby.git
The Ruby Programming Language
summaryrefslogtreecommitdiff
path: root/test/csv/test_row.rb
AgeCommit message (Expand)Author
2010-12-26* test/with_different_ofs.rb (DifferentOFS): should not affectnobu
2010-12-25* test/csv: DifferentOFS needs to be include in each classes.nobu
2010-12-25test/with_different_ofs.rb: fixed typos.nobu
2010-12-25* lib/csv.rb, test/csv: should not assume $, invariant.nobu