Sha256: ccb09a461773cc8d50f8424ff321b9791bb7705796f1915849817e62f5e2746e
Contents?: true
Size: 555 Bytes
Versions: 6
Compression:
Stored size: 555 Bytes
Contents
require "spec_helper" describe "Element#inspect" do html <<-HTML <div id="foo"></div> <div class="bar"></div> <p id="lol" class="bar"></div> HTML it "should return a string representation of the elements" do Element.find('#foo').inspect.should == '#<Element [<div id="foo">]>' Element.find('.bar').inspect.should == '#<Element [<div class="bar">, <p id="lol" class="bar">]>' end it "should return '[]' when called on empty element set" do Element.find('.inspect-spec-none').inspect.should == '#<Element []>' end end
Version data entries
6 entries across 6 versions & 1 rubygems