Sha256: 76ba950c675b39a5935b3ce60518008b14f16c7a3bb8985e4eac169cefbc0c4f
Contents?: true
Size: 842 Bytes
Versions: 29
Compression:
Stored size: 842 Bytes
Contents
# -*- coding: utf-8 -*- require 'helper' class TestRegressionButton07 < Test::Unit::TestCase def setup setup_dir_var end def teardown File.delete(@xlsx) if File.exist?(@xlsx) end def test_button07 @xlsx = 'button07.xlsm' workbook = WriteXLSX.new(@xlsx) worksheet = workbook.add_worksheet workbook.instance_variable_set(:@vba_codename, 'ThisWorkbook') worksheet.instance_variable_set(:@vba_codename, 'Sheet1') worksheet.insert_button('C2', { :macro => 'say_hello', :caption => 'Hello' } ) workbook.add_vba_project(File.join(@regression_output, 'vbaProject02.bin')) workbook.close compare_xlsx_for_regression(File.join(@regression_output, @xlsx), @xlsx) end end
Version data entries
29 entries across 29 versions & 1 rubygems