Sha256: 2a190a5b32ff8e7d0d0ac9a99b2e7ea61ee789a5f24379aa6b6e5bd9202204f2
Contents?: true
Size: 398 Bytes
Versions: 7
Compression:
Stored size: 398 Bytes
Contents
require "spec_helper" RSpec.describe "Element#to_s" do html <<-HTML <div id="foo">hi</div> <div class="bar"></div> <p id="lol" class="bar"></div> HTML it "returns a string representation of the elements" do Element.find('#foo').to_s.should == '<div id="foo">hi</div>' Element.find('.bar').to_s.should == '<div class="bar"></div>, <p id="lol" class="bar"></p>' end end
Version data entries
7 entries across 7 versions & 1 rubygems