Sha256: a12da66f12ac9aa049a32ac348bb6781a14494dbe3d46ef10c9d52154a6c559f

Contents?: true

Size: 307 Bytes

Versions: 54

Compression:

Stored size: 307 Bytes

Contents

describe :rexml_cdata_to_s, :shared => true do
  it "returns the contents of the CData" do
    c = REXML::CData.new("some text")
    c.send(@method).should == "some text"
  end

  it "does not escape text" do
    c1 = REXML::CData.new("some& text\n")
    c1.send(@method).should == "some& text\n"
  end
end

Version data entries

54 entries across 54 versions & 3 rubygems

Version Path
rhodes-7.6.0 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
rhodes-7.5.1 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
rhodes-7.4.1 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
rhodes-7.1.17 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
rhodes-6.2.0 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
rhodes-6.0.11 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
rhodes-5.5.18 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
rhodes-5.5.17 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
rhodes-5.5.15 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
rhodes-5.5.0.22 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
rhodes-5.5.2 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
rhodes-5.5.0.7 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
rhodes-5.5.0.3 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
rhodes-5.5.0 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
tauplatform-1.0.3 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
tauplatform-1.0.2 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
tauplatform-1.0.1 spec/framework_spec/app/spec/library/rexml/cdata/shared/to_s.rb
rubysl-rexml-2.0.4 spec/cdata/shared/to_s.rb
rubysl-rexml-2.0.3 spec/cdata/shared/to_s.rb
rubysl-rexml-1.0.0 spec/cdata/shared/to_s.rb