test/test_workbook.rb in writeexcel-0.6.6 vs test/test_workbook.rb in writeexcel-0.6.7

- old
+ new

@@ -69,9 +69,15 @@ @workbook.add_worksheet(sheetname) } end end + def test_check_sheetname_raise_if_same_utf16be_sheet_name + smily = [0x263a].pack('n') + @workbook.add_worksheet(smily, true) + assert_raise(RuntimeError) { @workbook.add_worksheet(smily, true)} + end + def test_check_sheetname_utf8_only ['Лист 1', 'Лист 2', 'Лист 3'].each do |sheetname| assert_nothing_raised { @workbook.add_worksheet(sheetname) } end end