diff options
author | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-13 12:40:24 +0000 |
---|---|---|
committer | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-13 12:40:24 +0000 |
commit | 31c764ff7fd0d0dbd5700d0850a2d6e8a3951f7e (patch) | |
tree | 0f7b87c1d495cc47f6aaadc0128d058230466d40 /test/win32ole/test_win32ole_typelib.rb | |
parent | e0a6ff2aa6f4994b5cdebd98a6f588c0c44cd927 (diff) | |
download | ruby-31c764ff7fd0d0dbd5700d0850a2d6e8a3951f7e.tar.gz |
* ext/win32ole/win32ole.c (foletype_s_ole_classes,
foletype_s_typelibs): refactoring.
* test/win32ole/test_win32ole_type.rb: add some test.
* ext/win32ole/win32ole.c (Init_win32ole): change method name
WIN32OLE_TYPELIB.ole_types from WIN32OLE_TYPELIB.ole_classes.
* test/win32ole/test_win32ole_typelib.rb: ditto.
* test/win32ole/test_folderitem2_invokeverb.rb: check create
shortcut string more strictly (This test is invoked in Japanese
Windows environment).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/win32ole/test_win32ole_typelib.rb')
-rw-r--r-- | test/win32ole/test_win32ole_typelib.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/win32ole/test_win32ole_typelib.rb b/test/win32ole/test_win32ole_typelib.rb index 2da50d9299..16e6c1a663 100644 --- a/test/win32ole/test_win32ole_typelib.rb +++ b/test/win32ole/test_win32ole_typelib.rb @@ -88,12 +88,12 @@ if defined?(WIN32OLE_TYPELIB) assert_equal("Microsoft Shell Controls And Automation", tlib.to_s) end - def test_ole_classes + def test_ole_types tlib = WIN32OLE_TYPELIB.new("Microsoft Shell Controls And Automation") - ole_classes = tlib.ole_classes - assert_instance_of(Array, ole_classes) - assert(ole_classes.size > 0) - assert_instance_of(WIN32OLE_TYPE, ole_classes[0]) + ole_types = tlib.ole_types + assert_instance_of(Array, ole_types) + assert(ole_types.size > 0) + assert_instance_of(WIN32OLE_TYPE, ole_types[0]) end def test_inspect |