Sha256: 14be0b7f8d12d2075d1dc4c5fec7688e8fe6d5512c51c5d50e7cb10790be15e1
Contents?: true
Size: 522 Bytes
Versions: 4
Compression:
Stored size: 522 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 == '[<div id="foo">]' Element.find('.bar').inspect.should == '[<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 == '[]' end end
Version data entries
4 entries across 4 versions & 1 rubygems