diff options
Diffstat (limited to 'spec/ruby/library/rexml/attribute/clone_spec.rb')
-rw-r--r-- | spec/ruby/library/rexml/attribute/clone_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/ruby/library/rexml/attribute/clone_spec.rb b/spec/ruby/library/rexml/attribute/clone_spec.rb new file mode 100644 index 0000000000..df0d9ca466 --- /dev/null +++ b/spec/ruby/library/rexml/attribute/clone_spec.rb @@ -0,0 +1,11 @@ +require File.expand_path('../../../../spec_helper', __FILE__) +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 |