summaryrefslogtreecommitdiff
path: root/spec/ruby/library/rexml/text/clone_spec.rb
blob: c7d16e0d85d336e6ff12233a156f81257273a404 (plain)
1
2
3
4
5
6
7
8
9
10
require File.expand_path('../../../../spec_helper', __FILE__)
require 'rexml/document'

describe "REXML::Text#clone" do
  it "creates a copy of this node" do
    text = REXML::Text.new("foo")
    text.clone.should == "foo"
    text.clone.should == text
  end
end