Sha256: 7be48b8926278d65ff81a44d1de56cefc619c4eb11c1d331f83f434363f08ff5
Contents?: true
Size: 517 Bytes
Versions: 5
Compression:
Stored size: 517 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 Document.id('foo').inspect.should == '[<div id="foo">]' Document.find('.bar').inspect.should == '[<div class="bar">, <p id="lol" class="bar">]' end it "should return '[]' when called on empty element set" do Document['.inspect-spec-none'].inspect.should == '[]' end end
Version data entries
5 entries across 5 versions & 1 rubygems