Sha256: 87b40ceeb83b39af6a8c9dfb39a8be066703aec03db7019b1e6ac6828a2b19c1
Contents?: true
Size: 425 Bytes
Versions: 12
Compression:
Stored size: 425 Bytes
Contents
shared_examples_for "find_link" do describe '#find_link' do before do @session.visit('/with_html') end it "should find any field" do @session.find_link('foo').text.should == "ullamco" @session.find_link('labore')[:href].should == "/with_simple_html" end it "should return nil if the field doesn't exist" do @session.find_link('Does not exist').should be_nil end end end
Version data entries
12 entries across 12 versions & 6 rubygems