summaryrefslogtreecommitdiff
path: root/spec/ruby/library/rexml/text/append_spec.rb
blob: be5636e84d28ba1af47a8ab6ad2eb57bf519da79 (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#<<" do
    it "appends a string to this text node" do
      text = REXML::Text.new("foo")
      text << "bar"
      text.should == "foobar"
    end
  end
end