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

- old
+ new

@@ -14,9 +14,13 @@ browser.dd(:class, "name").should exist browser.dd(:xpath, "//dd[@id='someone']").should exist browser.dd(:index, 0).should exist end + it "returns the first dd if given no args" do + browser.dd.should exist + end + it "returns false if the element does not exist" do browser.dd(:id, "no_such_id").should_not exist end it "raises TypeError when 'what' argument is invalid" do