Sha256: 008486739ec1e970196659a1aade59f2c288d70923ec40dde7b7f619a4b343cd
Contents?: true
Size: 531 Bytes
Versions: 7
Compression:
Stored size: 531 Bytes
Contents
require "spec_helper" RSpec.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 Element.find('#foo').children.size.should == 0 Element.parse('<ul class="kapow"></ul>').append_to Element.find('#foo') Element.find('#foo').children.class_name.should == "kapow" Element.find('#bar').append_to Element.find('#baz') Element.find('#baz').children.id.should == "bar" end end
Version data entries
7 entries across 7 versions & 1 rubygems