summaryrefslogtreecommitdiff
path: root/test/win32ole/test_win32ole_method.rb
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-10 12:22:16 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-10 12:22:16 +0000
commit4f1b06aabd54b86f08cac13498c73fcb0237fe05 (patch)
treec5ab00a9410bd3fa9e1df4780e4c8a7b97c8112d /test/win32ole/test_win32ole_method.rb
parent86714f5b160a5342f6ed9564fe9db30be120100c (diff)
* test/win32ole/test_win32ole_typelib.rb: add some illegal argument test.
* test/win32ole/test_win32ole_type.rb: ditto. * test/win32ole/test_win32ole_event.rb: ditto. * test/win32ole/test_win32ole_param.rb: ditto. * test/win32ole/test_win32ole_method.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/win32ole/test_win32ole_method.rb')
-rw-r--r--test/win32ole/test_win32ole_method.rb3
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")