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

Version Path
rhodes-7.6.0 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
rhodes-7.5.1 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
rhodes-7.4.1 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
rhodes-7.1.17 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
rhodes-6.2.0 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
rhodes-6.0.11 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
rhodes-5.5.18 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
rhodes-5.5.17 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
rhodes-5.5.15 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
rhodes-5.5.0.22 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
rhodes-5.5.2 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
rhodes-5.5.0.7 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
rhodes-5.5.0.3 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
rhodes-5.5.0 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
tauplatform-1.0.3 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
tauplatform-1.0.2 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
tauplatform-1.0.1 spec/framework_spec/app/spec/library/rexml/attributes/shared/add.rb
rubysl-rexml-2.0.4 spec/attributes/shared/add.rb
rubysl-rexml-2.0.3 spec/attributes/shared/add.rb
rubysl-rexml-1.0.0 spec/attributes/shared/add.rb