Sha256: 72ddac547907cf5d8a6280af1971d1603c89bae6b9b048616ab70f469a0ecf16
Contents?: true
Size: 1.42 KB
Versions: 1
Compression:
Stored size: 1.42 KB
Contents
require "watirspec" require "spec/autorun" describe Watir::Table do include WatiRspec::SpecHelper before :all do goto "http://dl.dropbox.com/u/2731643/misc/tables.html" end it "#to_a works with regular table" do expected_table = [ %w[1 2 3], %w[4 5 6], %w[7 8 9] ] table(:id => "normal").to_a.should =~ expected_table end it "#to_a works with table with headers" do expected_table = [ %w[1 2 3 4], %w[5 6 7 8], %w[9 10 11 12], ] table(:id => "headers").to_a.should =~ expected_table end it "#to_a works with nested tables" do expected_table = [ %w[1 2], [[%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"] ] table(:id => "colspan").to_a.should =~ expected_table end it "#to_a works with rowspan" do expected_table = [ %w[1 2], %w[3 4], %w[5] ] table(:id => "rowspan").to_a.should =~ expected_table end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watirspec-0.1.2 | spec/watir_table_spec.rb |