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

- old
+ new

@@ -19,9 +19,13 @@ browser.table(:index, 0).tfoot(:id, /tax_totals/).should exist browser.table(:index, 0).tfoot(:index, 0).should exist browser.table(:index, 0).tfoot(:xpath, "//tfoot[@id='tax_totals']").should exist end + it "returns the first tfoot if given no args" do + browser.tfoot.should exist + end + it "returns false if the table tfoot doesn't exist (page context)" do browser.tfoot(:id, 'no_such_id').should_not exist browser.tfoot(:id, /no_such_id/).should_not exist browser.tfoot(:index, 1337).should_not exist browser.tfoot(:xpath, "//tfoot[@id='no_such_id']").should_not exist