diff options
Diffstat (limited to 'test/win32ole/test_win32ole_variant.rb')
-rw-r--r-- | test/win32ole/test_win32ole_variant.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/win32ole/test_win32ole_variant.rb b/test/win32ole/test_win32ole_variant.rb index 1226e0de50..af3876837d 100644 --- a/test/win32ole/test_win32ole_variant.rb +++ b/test/win32ole/test_win32ole_variant.rb @@ -18,6 +18,12 @@ if defined?(WIN32OLE_VARIANT) assert_instance_of(WIN32OLE_VARIANT, obj) end + def test_s_new_exc + assert_raise(TypeError) { + WIN32OLE_VARIANT.new(/foo/) + } + end + def test_s_new_no_argument ex = nil begin |