summaryrefslogtreecommitdiff
path: root/spec/rubyspec/library/rexml/text/append_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/library/rexml/text/append_spec.rb')
-rw-r--r--spec/rubyspec/library/rexml/text/append_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/rubyspec/library/rexml/text/append_spec.rb b/spec/rubyspec/library/rexml/text/append_spec.rb
new file mode 100644
index 0000000000..c8f73f9393
--- /dev/null
+++ b/spec/rubyspec/library/rexml/text/append_spec.rb
@@ -0,0 +1,10 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+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