diff options
| author | Randy Morgan <[email protected]> | 2012-04-24 09:37:16 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-04-24 09:37:16 +0900 |
| commit | 4ef79992dd7faa2c0687c89f725ab0d85fced862 (patch) | |
| tree | e05eea160aea921d0b18ce764561e55294ad12f3 /test/stylesheet | |
| parent | 80e61961ce4115f74a30a5b19847993b2a1dbc0e (diff) | |
| download | caxlsx-4ef79992dd7faa2c0687c89f725ab0d85fced862.tar.gz caxlsx-4ef79992dd7faa2c0687c89f725ab0d85fced862.zip | |
1.8.7 patches
Diffstat (limited to 'test/stylesheet')
| -rw-r--r-- | test/stylesheet/tc_styles.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/stylesheet/tc_styles.rb b/test/stylesheet/tc_styles.rb index 18235fff..719a066b 100644 --- a/test/stylesheet/tc_styles.rb +++ b/test/stylesheet/tc_styles.rb @@ -46,7 +46,7 @@ class TestStyles < Test::Unit::TestCase num_fmt = {:num_fmt => 5} both = { :format_code => "#000", :num_fmt => 0 } assert_equal(@styles.parse_num_fmt_options, nil, 'noop if neither :format_code or :num_fmt exist') - max = @styles.numFmts.map{ |num_fmt| num_fmt.numFmtId }.max + max = @styles.numFmts.map{ |nf| nf.numFmtId }.max @styles.parse_num_fmt_options(f_code) assert_equal(@styles.numFmts.last.numFmtId, max + 1, "new numfmts gets next available id") assert(@styles.parse_num_fmt_options(num_fmt).is_a?(Integer), "Should return the provided num_fmt if not dxf") |
