# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx/chart' class TestWriteFormatCode < Minitest::Test def setup @chart = Writexlsx::Chart.new('Bar') end def test_write_format_code expected = 'General' @chart.__send__('write_format_code', 'General') result = @chart.instance_variable_get(:@writer).string assert_equal(expected, result) end end