diff options
| author | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-04-07 13:16:46 +0000 |
|---|---|---|
| committer | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-04-07 13:16:46 +0000 |
| commit | 58f6ae55771b998565c01a972f27fc4da015ba09 (patch) | |
| tree | 060d8318cfa9929816576f2b2710667441a9e3cd /test/win32ole | |
| parent | 25622aed3c8604946d401e7a22dde2f8544e6d31 (diff) | |
| download | ruby-58f6ae55771b998565c01a972f27fc4da015ba09.tar.gz ruby-58f6ae55771b998565c01a972f27fc4da015ba09.tar.xz ruby-58f6ae55771b998565c01a972f27fc4da015ba09.zip | |
WIN32OLE_TYPELIB.new accepts OLE files.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/win32ole')
| -rw-r--r-- | test/win32ole/test_win32ole_typelib.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/win32ole/test_win32ole_typelib.rb b/test/win32ole/test_win32ole_typelib.rb index 0ef805d95..f4ece8abe 100644 --- a/test/win32ole/test_win32ole_typelib.rb +++ b/test/win32ole/test_win32ole_typelib.rb @@ -33,6 +33,10 @@ if defined?(WIN32OLE_TYPELIB) assert_instance_of(WIN32OLE_TYPELIB, tlib_by_guid) assert_equal("Microsoft Shell Controls And Automation" , tlib_by_guid.name) + path = tlib.path + tlib_by_path = WIN32OLE_TYPELIB.new(path) + assert_equal("Microsoft Shell Controls And Automation" , tlib_by_path.name) + assert_raise(WIN32OLERuntimeError) { WIN32OLE_TYPELIB.new("Non Exist Type Library") } |
