Sha256: 6ea43bbf77b832ea1ea272fcfd1237fbbfe3340009a1bc6d73aff22c503bbb7f
Contents?: true
Size: 706 Bytes
Versions: 12
Compression:
Stored size: 706 Bytes
Contents
shared_examples_for "find_field" do describe '#find_field' do before do @session.visit('/form') end it "should find any field" do @session.find_field('Dog').value.should == 'dog' @session.find_field('form_description').text.should == 'Descriptive text goes here' @session.find_field('Region')[:name].should == 'form[region]' end it "should be nil if the field doesn't exist" do @session.find_field('Does not exist').should be_nil end it "should be aliased as 'field_labeled' for webrat compatibility" do @session.field_labeled('Dog').value.should == 'dog' @session.field_labeled('Does not exist').should be_nil end end end
Version data entries
12 entries across 12 versions & 6 rubygems