spec/watir_table_spec.rb in watirsplash-0.1.9 vs spec/watir_table_spec.rb in watirsplash-0.2.0

- old
+ new

@@ -1,7 +1,6 @@ -require "watirsplash" -require "spec/autorun" +require "spec" describe Watir::Table do include WatirSplash::SpecHelper before :all do @@ -31,32 +30,32 @@ [ ["1", "2"], [[["11", "12"], ["13", "14"]], "3"] ] - table(:id => "nested").to_a.should == expected_table + table(:id => "nested").to_a(2).should == expected_table end it "#to_a works with nested table with non-direct child" do expected_table = [ ["1", "2"], [[["11", "12"], ["13", "14"]], "3"] ] - table(:id => "nestednondirectchild").to_a.should == expected_table + table(:id => "nestednondirectchild").to_a(2).should == expected_table end it "#to_a works with deep-nested tables" do expected_table = [ ["1", "2"], [[["11", "12"], [[["404", "405"], ["406", "407"]], "14"]], "3"] ] - table(:id => "deepnested").to_a.should == expected_table + table(:id => "deepnested").to_a(3).should == expected_table end it "#to_a works with colspan" do expected_table = [ \ No newline at end of file