Sha256: b9ea7ba9e9a7caacea116e0821e4edfa281eab83b25c1fbb5127bead30ea8e93
Contents?: true
Size: 689 Bytes
Versions: 6
Compression:
Stored size: 689 Bytes
Contents
# -*- coding: utf-8 -*- require 'helper' class TestRegressionButton13 < Test::Unit::TestCase def setup setup_dir_var end def teardown File.delete(@xlsx) if File.exist?(@xlsx) end def test_button13 @xlsx = 'button07.xlsm' workbook = WriteXLSX.new(@xlsx) worksheet = workbook.add_worksheet workbook.set_vba_name worksheet.set_vba_name 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
6 entries across 6 versions & 1 rubygems