summaryrefslogtreecommitdiff
path: root/ext/win32ole/tests/testWIN32OLE.rb
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-09 12:34:47 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-09 12:34:47 +0000
commit4556ae58dcfae31daaff013ac93c5fae5fce4402 (patch)
tree94962e771fcc006b207bae20ca61cd57ddb4d078 /ext/win32ole/tests/testWIN32OLE.rb
parent652b68a1867b7a5a6cfdda6b2292bd59df16d52d (diff)
convert dispid in Ruby and C by INT2NUM and NUM2INT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32ole/tests/testWIN32OLE.rb')
-rw-r--r--ext/win32ole/tests/testWIN32OLE.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/win32ole/tests/testWIN32OLE.rb b/ext/win32ole/tests/testWIN32OLE.rb
index c51247de68..988fbb9101 100644
--- a/ext/win32ole/tests/testWIN32OLE.rb
+++ b/ext/win32ole/tests/testWIN32OLE.rb
@@ -303,6 +303,11 @@ class TestWin32OLE_WITH_MSI < RUNIT::TestCase
@record[ "StringData", 1 ] = 'ffff'
assert_equal('ffff', @record.StringData(1))
end
+
+ def test__invoke
+ shell=WIN32OLE.new('Shell.Application')
+ assert_equal(shell.NameSpace(0).title, shell._invoke(0x60020002, [0], [WIN32OLE::VARIANT::VT_VARIANT]).title)
+ end
end
# ---------------------