# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx' require 'stringio' class TestGetChartRange < Minitest::Test def setup @workbook = WriteXLSX.new(StringIO.new) end def test_write_workbook_view_1 expected = '' result = @workbook.__send__('write_workbook_view') assert_equal(expected, result) end def test_write_workbook_view_second_tab_selected expected = '' @workbook.activesheet = 1 result = @workbook.__send__('write_workbook_view') assert_equal(expected, result) end def test_write_workbook_view_second_tab_selected_first_sheet_set expected = '' @workbook.firstsheet = 1 @workbook.activesheet = 1 result = @workbook.__send__('write_workbook_view') assert_equal(expected, result) end def test_write_workbook_view_with_set_size expected = '' @workbook.set_size result = @workbook.__send__('write_workbook_view') assert_equal(expected, result) end def test_write_workbook_view_with_set_size_0_0 expected = '' @workbook.set_size(0, 0) result = @workbook.__send__('write_workbook_view') assert_equal(expected, result) end def test_write_workbook_view_with_set_size_1073_644 expected = '' @workbook.set_size(1073, 644) result = @workbook.__send__('write_workbook_view') assert_equal(expected, result) end def test_write_workbook_view_with_set_size_123_70 expected = '' @workbook.set_size(123, 70) result = @workbook.__send__('write_workbook_view') assert_equal(expected, result) end def test_write_workbook_view_with_set_size_719_490 expected = '' @workbook.set_size(719, 490) result = @workbook.__send__('write_workbook_view') assert_equal(expected, result) end def test_set_tab_ratio_wirhout_param expected = '' @workbook.set_tab_ratio result = @workbook.__send__('write_workbook_view') assert_equal(expected, result) end def test_set_tab_ratio_with_34_6 expected = '' @workbook.set_tab_ratio(34.6) result = @workbook.__send__('write_workbook_view') assert_equal(expected, result) end def test_set_tab_ratio_with_0 expected = '' @workbook.set_tab_ratio(0) result = @workbook.__send__('write_workbook_view') assert_equal(expected, result) end def test_set_tab_ratio_with_100 expected = '' @workbook.set_tab_ratio(100) result = @workbook.__send__('write_workbook_view') assert_equal(expected, result) end end