spec/watirspec/table_spec.rb in watir-webdriver-0.0.1.dev4 vs spec/watirspec/table_spec.rb in watir-webdriver-0.0.1.dev5
- old
+ new
@@ -128,10 +128,10 @@
end
it "raises UnknownCellException if the index is out of bounds" do
lambda { browser.table(:id, 'outer').child_cell(1337) }.should raise_error(UnknownCellException)
end
end
-
+
describe "#each" do
it "iterates through the table's rows" do
ids = ["outer_first", "outer_second", "outer_last"]
browser.table(:id, 'outer').each_with_index do |r, idx|
r.id.should == ids[idx]