Sha256: 73473367e7b0fa04b1d7db5981008b709b90199f4646e1af59ee9202b42fb8f2
Contents?: true
Size: 543 Bytes
Versions: 49
Compression:
Stored size: 543 Bytes
Contents
require 'rexml/document' require File.expand_path('../../../../spec_helper', __FILE__) describe "REXML::Element#cdatas" do before :each do @e = REXML::Element.new("Root") end it "returns the array of children cdatas" do c = REXML::CData.new("Primary") d = REXML::CData.new("Secondary") @e << c @e << d @e.cdatas.should == [c, d] end it "freezes the returned array" do @e.cdatas.frozen?.should == true end it "returns an empty array if element has no cdata" do @e.cdatas.should == [] end end
Version data entries
49 entries across 49 versions & 2 rubygems