diff options
| author | Randy Morgan <[email protected]> | 2012-11-15 09:15:01 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-11-15 09:15:01 +0900 |
| commit | f0c2414d657c4f82821afe4aa331cb91b38b9eb9 (patch) | |
| tree | 395ff730209de9a68a59a03a75e9bcd885783f76 /test/workbook/worksheet/tc_data_bar.rb | |
| parent | 1e32d9b8b12b22a273a26f0aaff9f157fbedd966 (diff) | |
| download | caxlsx-f0c2414d657c4f82821afe4aa331cb91b38b9eb9.tar.gz caxlsx-f0c2414d657c4f82821afe4aa331cb91b38b9eb9.zip | |
Updated DataBar conditional formatting to accept cfvo hashes in the initializer to bring the API inline with ColorScale
Diffstat (limited to 'test/workbook/worksheet/tc_data_bar.rb')
| -rw-r--r-- | test/workbook/worksheet/tc_data_bar.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/workbook/worksheet/tc_data_bar.rb b/test/workbook/worksheet/tc_data_bar.rb index af803f23..a6194de9 100644 --- a/test/workbook/worksheet/tc_data_bar.rb +++ b/test/workbook/worksheet/tc_data_bar.rb @@ -11,6 +11,13 @@ class TestDataBar < Test::Unit::TestCase assert_equal @data_bar.showValue, true end + def test_override_default_cfvos + data_bar = Axlsx::DataBar.new({:color => 'FF00FF00'}, {:type => :min, :val => "20"}) + assert_equal("20", data_bar.value_objects.first.val) + assert_equal("0", data_bar.value_objects.last.val) + end + + def test_minLength assert_raise(ArgumentError) { @data_bar.minLength = :invalid_type } assert_nothing_raised { @data_bar.minLength = 0} |
