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 == "&amp; &lt; &gt;"
  end
end

Version data entries

49 entries across 49 versions & 2 rubygems

Version Path
rhodes-3.3.4 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.3 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.3.beta.4 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.3.beta.3 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.3.beta.2 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.3.beta.1 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.2 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.2.beta.7 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.2.beta.6 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.2.beta.5 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.2.beta.4 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.2.beta.3 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.2.beta.2 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.2.beta.1 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.1 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.0 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.0.beta.3 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.0.beta.2 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.3.0.beta.1 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb
rhodes-3.2.3 spec/framework_spec/app/spec/library/rexml/text/to_s_spec.rb