Sha256: eb80f6e623f60b53f4e25d5036cdd8f9894f995d3ee65b1b95a8224d054de8bd
Contents?: true
Size: 474 Bytes
Versions: 1
Compression:
Stored size: 474 Bytes
Contents
module FindButtonSpec shared_examples_for "find_button" do describe '#find_button' do before do @session.visit('/form') end it "should find any field" do @session.find_button('med')[:id].should == "mediocre" @session.find_button('crap321').value.should == "crappy" end it "should return nil if the field doesn't exist" do @session.find_button('Does not exist').should be_nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capybara-0.3.0 | spec/dsl/find_button_spec.rb |