diff options
| author | Jan-Hendrik Hühne <[email protected]> | 2012-06-06 17:18:55 +0200 |
|---|---|---|
| committer | Jan-Hendrik Hühne <[email protected]> | 2012-06-06 17:18:55 +0200 |
| commit | 264c9e55e0b72db341f85588d9ed1481a7cf8888 (patch) | |
| tree | c76d4bd44df4c29843ac43073eb0ce8273b833e4 /test | |
| parent | 4e9cab4bc167f1a5c080c616b84860bdf5ebbb6f (diff) | |
| download | caxlsx-264c9e55e0b72db341f85588d9ed1481a7cf8888.tar.gz caxlsx-264c9e55e0b72db341f85588d9ed1481a7cf8888.zip | |
Changes default value of xSplit and ySplit.
Diffstat (limited to 'test')
| -rw-r--r-- | test/workbook/worksheet/tc_pane.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/workbook/worksheet/tc_pane.rb b/test/workbook/worksheet/tc_pane.rb index 22838095..0c4c19b1 100644 --- a/test/workbook/worksheet/tc_pane.rb +++ b/test/workbook/worksheet/tc_pane.rb @@ -4,13 +4,14 @@ require 'tc_helper.rb' class TestPane < Test::Unit::TestCase def setup #inverse defaults for booleans - @nil_options = { :active_pane => :bottom_left, :state => :frozen, :x_split => 2, :y_split => 2, :top_left_cell => 'A2' } + @nil_options = { :active_pane => :bottom_left, :state => :frozen, :top_left_cell => 'A2' } + @int_0_options = { :x_split => 2, :y_split => 2 } @string_options = { :top_left_cell => 'A2' } @integer_options = { :x_split => 2, :y_split => 2 } @symbol_options = { :active_pane => :bottom_left, :state => :frozen } - @options = @nil_options + @options = @nil_options.merge(@int_0_options) @pane = Axlsx::Pane.new(@options) end @@ -22,6 +23,11 @@ class TestPane < Test::Unit::TestCase assert_equal(nil, pane.send(key.to_sym), "initialized default #{key} should be nil") assert_equal(value, @pane.send(key.to_sym), "initialized options #{key} should be #{value}") end + + @int_0_options.each do |key, value| + assert_equal(0, pane.send(key.to_sym), "initialized default #{key} should be 0") + assert_equal(value, @pane.send(key.to_sym), "initialized options #{key} should be #{value}") + end end def test_string_attribute_validation |
