summaryrefslogtreecommitdiffhomepage
path: root/test/workbook/tc_workbook.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/workbook/tc_workbook.rb')
-rw-r--r--test/workbook/tc_workbook.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/workbook/tc_workbook.rb b/test/workbook/tc_workbook.rb
index 537f9074..f10ad24a 100644
--- a/test/workbook/tc_workbook.rb
+++ b/test/workbook/tc_workbook.rb
@@ -16,6 +16,13 @@ class TestWorkbook < Test::Unit::TestCase
assert_equal(@wb.use_autowidth, false)
end
+
+ def test_sheet_by_name_retrieval
+ @wb.add_worksheet(:name=>'foo')
+ @wb.add_worksheet(:name=>'bar')
+ assert_equal('foo', @wb.sheet_by_name('foo').name)
+
+ end
def test_date1904
assert_equal(Axlsx::Workbook.date1904, @wb.date1904)
@wb.date1904 = :false