summaryrefslogtreecommitdiff
path: root/spec/ruby/library/rexml/text/clone_spec.rb
blob: 7801782ff57431427dd63656072045cc46bf1429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require_relative '../../../spec_helper'

ruby_version_is ''...'3.0' do
  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
end