diff options
Diffstat (limited to 'test/win32ole/test_win32ole_method.rb')
-rw-r--r-- | test/win32ole/test_win32ole_method.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/win32ole/test_win32ole_method.rb b/test/win32ole/test_win32ole_method.rb index 31eff87937..161b10233f 100644 --- a/test/win32ole/test_win32ole_method.rb +++ b/test/win32ole/test_win32ole_method.rb @@ -33,6 +33,9 @@ if defined?(WIN32OLE_METHOD) assert_raise(WIN32OLERuntimeError) { method = WIN32OLE_METHOD.new(ole_type, "NonExistMethod") } + assert_raise(TypeError) { + method = WIN32OLE_METHOD.new(ole_type, 1) + } method = WIN32OLE_METHOD.new(ole_type, "Open") assert_instance_of(WIN32OLE_METHOD, method) method = WIN32OLE_METHOD.new(ole_type, "open") |