summaryrefslogtreecommitdiff
path: root/test/win32ole/test_win32ole_method_event.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2023-12-31 11:45:56 +0900
committergit <[email protected]>2024-01-28 15:25:35 +0000
commitbd6f98340318ac17213b4328e79217e606912206 (patch)
tree7d2281bd9d5207f20609d100c4c74b5780c2cb32 /test/win32ole/test_win32ole_method_event.rb
parent8af4ef30e57759d4f3994a56dbb38a6151f0bbd3 (diff)
[ruby/win32ole] Use the scoped names in the tests
https://github.com/ruby/win32ole/commit/2b91b6b838
Diffstat (limited to 'test/win32ole/test_win32ole_method_event.rb')
-rw-r--r--test/win32ole/test_win32ole_method_event.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/win32ole/test_win32ole_method_event.rb b/test/win32ole/test_win32ole_method_event.rb
index 7758168872..ab409a1f2d 100644
--- a/test/win32ole/test_win32ole_method_event.rb
+++ b/test/win32ole/test_win32ole_method_event.rb
@@ -5,7 +5,7 @@ end
require 'test/unit'
-if defined?(WIN32OLE_METHOD)
+if defined?(WIN32OLE::Method)
require_relative 'available_ole'
class TestWIN32OLE_METHOD_EVENT < Test::Unit::TestCase
unless AvailableOLE.sysmon_available?
@@ -14,10 +14,10 @@ if defined?(WIN32OLE_METHOD)
end
else
def setup
- ole_type = WIN32OLE_TYPE.new('System Monitor Control', 'SystemMonitor')
- @on_dbl_click = WIN32OLE_METHOD.new(ole_type, 'OnDblClick')
- ole_type = WIN32OLE_TYPE.new('Microsoft Shell Controls And Automation', 'Shell')
- @namespace = WIN32OLE_METHOD.new(ole_type, 'namespace')
+ ole_type = WIN32OLE::Type.new('System Monitor Control', 'SystemMonitor')
+ @on_dbl_click = WIN32OLE::Method.new(ole_type, 'OnDblClick')
+ ole_type = WIN32OLE::Type.new('Microsoft Shell Controls And Automation', 'Shell')
+ @namespace = WIN32OLE::Method.new(ole_type, 'namespace')
end
def test_event?