spec/watir_table_spec.rb in watirspec-0.1.1 vs spec/watir_table_spec.rb in watirspec-0.1.2
- old
+ new
@@ -32,9 +32,17 @@
[[%w[11 12], %w[13 14]], "3"]
]
table(:id => "nested").to_a.should =~ expected_table
end
+ it "#to_a works with deep-nested tables" do
+ expected_table = [
+ %w[1 2],
+ [[%w[11 12], [[["404", "405"], ["406", "407"]], "14"]], "3"]
+ ]
+ table(:id => "deepnested").to_a.should =~ expected_table
+ end
+
it "#to_a works with colspan" do
expected_table = [
%w[1 2],
["3"]
]
\ No newline at end of file