Sha256: 58ebc92aedb23143b105219cbfee5cef40130d26791e03b95b476873a3876d67
Contents?: true
Size: 594 Bytes
Versions: 1
Compression:
Stored size: 594 Bytes
Contents
describe "Element#append_to" do before do @div = Document.parse <<-HTML <div id="foo"></div> <div id="bar"></div> <div id="baz"></div> HTML @div.append_to_body end after do @div.remove end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opal-jquery-0.0.1 | spec/element/append_to_spec.rb |