require 'runit/testcase' require 'excel' class ExcelTest < RUNIT::TestCase def setup @excel = nil end def assert_excel(excel) assert_equals('Microsoft Excel', excel.name, "test name property") end def test_new @excel = Excel.new assert_excel(@excel) end def test_runDuring Excel.runDuring do |excel| assert_excel(excel) end end def teardown @excel.quit if @excel end end if __FILE__ == $0 require 'runit/cui/testrunner' RUNIT::CUI::TestRunner.run(ExcelTest.suite) end