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

- old
+ new

@@ -13,9 +13,13 @@ browser.thead(:id, /tax_headers/).should exist browser.thead(:index, 0).should exist browser.thead(:xpath, "//thead[@id='tax_headers']").should exist end + it "returns the first thead if given no args" do + browser.thead.should exist + end + it "returns true if the table theader exists (table context)" do browser.table(:index, 0).thead(:id, 'tax_headers').should exist browser.table(:index, 0).thead(:id, /tax_headers/).should exist browser.table(:index, 0).thead(:index, 0).should exist browser.table(:index, 0).thead(:xpath, "//thead[@id='tax_headers']").should exist