Sha256: d1f15aac2179611757abdb1dd6635d35b18fbda29a76b477c0de64e1c39859e9
Contents?: true
Size: 484 Bytes
Versions: 5
Compression:
Stored size: 484 Bytes
Contents
require 'rexml/document' describe "REXML::Element#comments" do before :each do @e = REXML::Element.new "root" @c1 = REXML::Comment.new "this is a comment" @c2 = REXML::Comment.new "this is another comment" @e << @c1 @e << @c2 end it "returns the array of comments" do @e.comments.should == [@c1, @c2] end it "returns a frozen object" do comment = REXML::Comment.new "The insertion should fail" @e.comments.frozen?.should == true end end
Version data entries
5 entries across 5 versions & 1 rubygems