Sha256: 9fc9330ef841447e55b91ceb2a82c683e0b73e317807183fc62a6c9b9fa2788e
Contents?: true
Size: 447 Bytes
Versions: 54
Compression:
Stored size: 447 Bytes
Contents
describe :rexml_attribute_add, :shared => true do before :each do @e = REXML::Element.new("root") @attr = REXML::Attributes.new(@e) @name = REXML::Attribute.new("name", "Joe") end it "adds an attribute" do @attr.send(@method, @name) @attr["name"].should == "Joe" end it "replaces an existing attribute" do @attr.send(@method, REXML::Attribute.new("name", "Bruce")) @attr["name"].should == "Bruce" end end
Version data entries
54 entries across 54 versions & 3 rubygems