Sha256: 47fb5e47c3f9f67daeae3435e004dc804e96a79a396c90ca120aff884e7c7b3b
Contents?: true
Size: 783 Bytes
Versions: 9
Compression:
Stored size: 783 Bytes
Contents
Capybara::SpecHelper.spec '#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') @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 Capybara::SpecHelper.spec '#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
Version data entries
9 entries across 9 versions & 2 rubygems