summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/workbook/worksheet/tc_cell.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/workbook/worksheet/tc_cell.rb b/test/workbook/worksheet/tc_cell.rb
index 208b15e0..baa7a9f1 100644
--- a/test/workbook/worksheet/tc_cell.rb
+++ b/test/workbook/worksheet/tc_cell.rb
@@ -50,6 +50,12 @@ class TestCell < Test::Unit::TestCase
assert_equal(@cAA.r_abs,"$AA$2", "needs to accept multi-digit columns")
end
+ def test_name
+ @c.name = 'foo'
+ assert_equal(1, @ws.workbook.defined_names.size)
+ assert_equal('foo', @ws.workbook.defined_names.last.name)
+ end
+
def test_style
assert_raise(ArgumentError, "must reject invalid style indexes") { @[email protected] }
assert_nothing_raised("must allow valid style index changes") {@c.style=1}