require 'runit/testcase' require 'file-win32' require 'excel' class XlsJoinTest < RUNIT::TestCase def setup @xls_file = "xlsjoin-test.xls" @excel = Excel.new(false) end def teardown File.delete(@xls_file) if File.exist?(@xls_file) @excel.quit end def open_xls(filename) path = FileSystemObject.instance.getAbsolutePathName(filename) @excel.workbooks.open({'Filename'=>path, 'ReadOnly'=>true}) end def test_ab system <