spec/watirspec/form_spec.rb in watir-webdriver-0.0.7 vs spec/watirspec/form_spec.rb in watir-webdriver-0.0.8

- old
+ new

@@ -21,9 +21,13 @@ browser.form(:action, /to_me/).should exist browser.form(:index, 0).should exist browser.form(:xpath, "//form[@id='new_user']").should exist end + it "returns the first form if given no args" do + browser.form.should exist + end + it "returns false if the form doesn't exist" do browser.form(:id, 'no_such_id').should_not exist browser.form(:id, /no_such_id/).should_not exist browser.form(:class, 'no_such_class').should_not exist