Sha256: 62861c6b493777b1045a1ad3011672a9dded36aadb1c14f64aaa78fd7be8f7e2
Contents?: true
Size: 514 Bytes
Versions: 5
Compression:
Stored size: 514 Bytes
Contents
require "spec_helper" describe "Element#append_to" do html <<-HTML <div id="foo"></div> <div id="bar"></div> <div id="baz"></div> HTML it "should insert the receiver into the target element" do Document.id('foo').children.size.should == 0 Document.parse('<ul class="kapow"></ul>').append_to Document.id('foo') Document.id('foo').children.class_name.should == "kapow" Document.id('bar').append_to Document.id('baz') Document.id('baz').children.id.should == "bar" end end
Version data entries
5 entries across 5 versions & 1 rubygems