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

Version Path
write_xlsx-0.81.1 test/regression/test_button07.rb
write_xlsx-0.81.0 test/regression/test_button07.rb
write_xlsx-0.80.0 test/regression/test_button07.rb
write_xlsx-0.79.0 test/regression/test_button07.rb
write_xlsx-0.78.0 test/regression/test_button07.rb
write_xlsx-0.77.2 test/regression/test_button07.rb
write_xlsx-0.77.1 test/regression/test_button07.rb
write_xlsx-0.77.0 test/regression/test_button07.rb
write_xlsx-0.76.3 test/regression/test_button07.rb
write_xlsx-0.76.2 test/regression/test_button07.rb
write_xlsx-0.76.1 test/regression/test_button07.rb
write_xlsx-0.76.0 test/regression/test_button07.rb
write_xlsx-0.75.0 test/regression/test_button07.rb
write_xlsx-0.74.0 test/regression/test_button07.rb
write_xlsx-0.73.0 test/regression/test_button07.rb
write_xlsx-0.72.3.beta1 test/regression/test_button07.rb
write_xlsx-0.72.2 test/regression/test_button07.rb
write_xlsx-0.72.1 test/regression/test_button07.rb
write_xlsx-0.72.0 test/regression/test_button07.rb
write_xlsx-0.71.0 test/regression/test_button07.rb