summaryrefslogtreecommitdiff
path: root/ext/win32ole/tests/testOLEMETHOD.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/win32ole/tests/testOLEMETHOD.rb')
-rw-r--r--ext/win32ole/tests/testOLEMETHOD.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/win32ole/tests/testOLEMETHOD.rb b/ext/win32ole/tests/testOLEMETHOD.rb
index b52052e669..390c9999f8 100644
--- a/ext/win32ole/tests/testOLEMETHOD.rb
+++ b/ext/win32ole/tests/testOLEMETHOD.rb
@@ -84,4 +84,9 @@ class TestOLEMETHOD < RUNIT::TestCase
m = WIN32OLE_METHOD.new(@excel_app, 'QueryInterface')
assert_equal(0, m.offset_vtbl)
end
+ def test_dispid
+ tobj = WIN32OLE_TYPE.new('Microsoft Shell Controls And Automation', 'FolderItem2')
+ method = WIN32OLE_METHOD.new(tobj, 'InvokeVerb')
+ assert_equal(1610743824, method.dispid)
+ end
end