Sha256: 2a398bfb74458811638c5ef1639572d1afbe0706aff14439d52e1b3439ffdc6d

Contents?: true

Size: 287 Bytes

Versions: 5

Compression:

Stored size: 287 Bytes

Contents

require 'rexml/document'

describe "REXML::Attribute#clone" do
  it "returns a copy of this Attribute" do
    orig = REXML::Attribute.new("name", "value&&")
    orig.should == orig.clone
    orig.clone.to_s.should == orig.to_s
    orig.clone.to_string.should == orig.to_string
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubysl-rexml-2.0.4 spec/attribute/clone_spec.rb
rubysl-rexml-2.0.3 spec/attribute/clone_spec.rb
rubysl-rexml-1.0.0 spec/attribute/clone_spec.rb
rubysl-rexml-2.0.2 spec/attribute/clone_spec.rb
rubysl-rexml-2.0.1 spec/attribute/clone_spec.rb