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

ruby_version_is ''...'2.8' 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