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

- old
+ new

@@ -18,9 +18,13 @@ browser.del(:class, /lead/).should exist browser.del(:index, 0).should exist browser.del(:xpath, "//del[@id='lead']").should exist end + it "returns the first del if given no args" do + browser.del.should exist + end + it "returns false if the element doesn't exist" do browser.del(:id, "no_such_id").should_not exist browser.del(:id, /no_such_id/).should_not exist browser.del(:text, "no_such_text").should_not exist browser.del(:text, /no_such_text/).should_not exist