Sha256: 9cba5854785e963320dbb2b833697e54288105c5a0b7ec1ec8d8ad1617c7a522
Contents?: true
Size: 458 Bytes
Versions: 49
Compression:
Stored size: 458 Bytes
Contents
require File.expand_path('../../../../spec_helper', __FILE__) require 'rexml/document' describe "REXML::Text#to_s" do it "returns the string of this Text node" do u = REXML::Text.new("sean russell", false, nil, true) u.to_s.should == "sean russell" t = REXML::Text.new("some test text") t.to_s.should == "some test text" end it "escapes the text" do t = REXML::Text.new("& < >") t.to_s.should == "& < >" end end
Version data entries
49 entries across 49 versions & 2 rubygems