Class: TestMyExcel

Inherits:
TestWin32OLE show all
Defined in:
tests/testWIN32OLE.rb

Constant Summary

Constants included from OLESERVER

OLESERVER::MS_EXCEL_TYPELIB, OLESERVER::MS_XML_TYPELIB

Instance Method Summary collapse

Methods inherited from TestWin32OLE

#teardown, #test_const_CP_ACP, #test_const_CP_MACCP, #test_const_CP_OEMCP, #test_const_CP_SYMBOL, #test_const_CP_THREAD_ACP, #test_const_CP_UTF7, #test_const_CP_UTF8, #test_convert_bignum, #test_each, #test_get_win32ole_object, #test_invoke, #test_no_exist_property, #test_ole_func_methods, #test_ole_get_methods, #test_ole_invoke_with_named_arg, #test_ole_invoke_with_named_arg_last, #test_ole_method_help, #test_ole_methods, #test_ole_put_methods, #test_s_codepage, #test_s_codepage_changed, #test_s_codepage_set, #test_s_new_DCOM, #test_s_new_from_clsid, #test_setproperty, #test_setproperty_bracket, #test_setproperty_with_equal

Instance Method Details

#setupObject

because we overrided new() and connect() we need to change the test. also, because the class will be different



334
335
336
337
# File 'tests/testWIN32OLE.rb', line 334

def setup
  @excel = MyExcel.new
  @excel.visible = true
end

#test_s_connectObject



341
342
343
344
# File 'tests/testWIN32OLE.rb', line 341

def test_s_connect
  excel2 = MyExcel.connect
  assert_instance_of(MyExcel, excel2)
end

#test_s_newObject



338
339
340
# File 'tests/testWIN32OLE.rb', line 338

def test_s_new
  assert_instance_of(MyExcel, @excel)
end