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

- old
+ new

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