require "spec_helper" describe "Element#to_s" do html <<-HTML
hi

HTML it "returns a string representation of the elements" do Element.find('#foo').to_s.should == '

hi
' Element.find('.bar').to_s.should == '
,

' end end