Sha256: 3cbdd69198f951488e671506cc695fd11eea4ce833bb76f4f5a97d3f9aecdb71
Contents?: true
Size: 796 Bytes
Versions: 54
Compression:
Stored size: 796 Bytes
Contents
shared_examples_for "has_button" do describe '#has_button?' do before do @session.visit('/form') end it "should be true if the given button is on the page" do @session.should have_button('med') @session.should have_button('crap321') end it "should be false if the given button is not on the page" do @session.should_not have_button('monkey') end end describe '#has_no_button?' do before do @session.visit('/form') end it "should be true if the given button is on the page" do @session.should_not have_no_button('med') @session.should_not have_no_button('crap321') end it "should be false if the given button is not on the page" do @session.should have_no_button('monkey') end end end
Version data entries
54 entries across 54 versions & 14 rubygems