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 161b10233f..f2ed0c622c 100644 --- a/test/win32ole/test_win32ole_method.rb +++ b/test/win32ole/test_win32ole_method.rb @@ -24,6 +24,9 @@ if defined?(WIN32OLE_METHOD) def test_initialize ole_type = WIN32OLE_TYPE.new("Microsoft Shell Controls And Automation", "Shell") + assert_raise(TypeError) { + WIN32OLE_METHOD.new(1, 2) + } assert_raise(ArgumentError) { method = WIN32OLE_METHOD.new("foo") } |