spec/watirspec/table_spec.rb in watir-webdriver-0.1.0 vs spec/watirspec/table_spec.rb in watir-webdriver-0.1.1

- old
+ new

@@ -115,14 +115,17 @@ browser.table(:id, 'inner').rows.length.should == 1 browser.table(:id, 'outer').rows.length.should == 3 end it "finds rows matching the selector" do - pending + rows = browser.table(:id, 'outer').rows(:id => /first|last/) + + rows.first.id.should == "outer_first" + rows.last.id.should == "outer_last" end it "does not find rows from a nested table" do - pending + browser.table(:id, "outer").rows(:id => "t2_r1_c1").size.should == 0 end end describe "#tbody" do it "returns the correct instance of TableSection" do