spec/element/append_to_spec.rb in opal-jquery-0.0.6 vs spec/element/append_to_spec.rb in opal-jquery-0.0.7
- old
+ new
@@ -6,14 +6,14 @@
<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
+ Element.find('#foo').children.size.should == 0
- Document.parse('<ul class="kapow"></ul>').append_to Document.id('foo')
- Document.id('foo').children.class_name.should == "kapow"
+ Element.parse('<ul class="kapow"></ul>').append_to Element.find('#foo')
+ Element.find('#foo').children.class_name.should == "kapow"
- Document.id('bar').append_to Document.id('baz')
- Document.id('baz').children.id.should == "bar"
+ Element.find('#bar').append_to Element.find('#baz')
+ Element.find('#baz').children.id.should == "bar"
end
end