aboutsummaryrefslogtreecommitdiffstats
path: root/test/win32ole/test_win32ole_type.rb
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-28 10:23:31 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-28 10:23:31 +0000
commit41585e424be2bfc12526a3f00378745c5851ad59 (patch)
tree5e8a748a814a4401fb2e524d2e70c611fd59c786 /test/win32ole/test_win32ole_type.rb
parent51b4cc11d179106d4b7b9e8baf84e8e55c7b49f7 (diff)
downloadruby-41585e424be2bfc12526a3f00378745c5851ad59.tar.gz
* ext/win32ole/win32ole.c (ole_type_progid): progid getted by
ProgIDFromCLSID should be freed by CoTaskMemFree. Thanks, arton. * test/win32ole/test_win32ole.rb (test_raise_message): set negative compareMode value to raise WIN32OLERuntimeError. * test/win32ole/test_win32ole_type.rb (test_implemented_ole_types): support some environment which returns IShellDispatch5 instead of IShellDispatch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/win32ole/test_win32ole_type.rb')
-rw-r--r--test/win32ole/test_win32ole_type.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/win32ole/test_win32ole_type.rb b/test/win32ole/test_win32ole_type.rb
index 1674604fce..3ef62b10d1 100644
--- a/test/win32ole/test_win32ole_type.rb
+++ b/test/win32ole/test_win32ole_type.rb
@@ -152,7 +152,7 @@ if defined?(WIN32OLE_TYPE)
ole_types = @ole_type.implemented_ole_types
assert_instance_of(Array, ole_types)
assert(ole_types.size > 0)
- assert_equal("IShellDispatch", ole_types[0].name)
+ assert_match(/^IShellDispatch5{0,1}$/, ole_types[0].name)
end
def test_inspect