# -*- coding: utf-8 -*- require 'helper' class TestWorksheetDataBar08 < Minitest::Test def setup @workbook = WriteXLSX.new(StringIO.new) @worksheet = @workbook.add_worksheet('') end ############################################################################### # # Tests for WriteXLSX::Worksheet methods. # # def test_data_bar_08 @worksheet.select @worksheet.conditional_formatting( 'A1', :type => 'data_bar', :bar_only => 1 ) @worksheet.assemble_xml_file result = got_to_array(@worksheet.instance_variable_get(:@writer).string) expected = expected_to_array(expected_xml) assert_equal(expected, result) end def expected_xml < EOS end end