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

- old
+ new

@@ -17,9 +17,13 @@ browser.h5(:index, 0).should exist browser.h6(:index, 0).should exist browser.h1(:xpath, "//h1[@id='first_header']").should exist end + it "returns the first h1 if given no args" do + browser.h1.should exist + end + it "returns true if the element exists" do browser.h1(:id, "no_such_id").should_not exist browser.h1(:id, /no_such_id/).should_not exist browser.h1(:text, "no_such_text").should_not exist browser.h1(:text, /no_such_text 1/).should_not exist