diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-12-31 17:02:58 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-01-28 15:25:34 +0000 |
commit | 1e2d088dd3d534958c4e010a6bcb815cce83c1b5 (patch) | |
tree | e5fb8f55a1e1438e8ac4f91355ea8c1be3e18530 /test/win32ole | |
parent | baef72da3601b541cb04aca310fee63eec18964f (diff) |
[ruby/win32ole] Use the scoped names in `inspect` and error messages
https://github.com/ruby/win32ole/commit/2f51493bd1
Diffstat (limited to 'test/win32ole')
-rw-r--r-- | test/win32ole/test_win32ole_method.rb | 2 | ||||
-rw-r--r-- | test/win32ole/test_win32ole_param.rb | 6 | ||||
-rw-r--r-- | test/win32ole/test_win32ole_type.rb | 2 | ||||
-rw-r--r-- | test/win32ole/test_win32ole_typelib.rb | 2 | ||||
-rw-r--r-- | test/win32ole/test_win32ole_variable.rb | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/test/win32ole/test_win32ole_method.rb b/test/win32ole/test_win32ole_method.rb index a0e113e7f0..c52c858f71 100644 --- a/test/win32ole/test_win32ole_method.rb +++ b/test/win32ole/test_win32ole_method.rb @@ -127,7 +127,7 @@ if defined?(WIN32OLE_METHOD) end def test_inspect - assert_equal("#<WIN32OLE_METHOD:NameSpace>", @m_namespace.inspect) + assert_equal("#<WIN32OLE::Method:NameSpace>", @m_namespace.inspect) end end diff --git a/test/win32ole/test_win32ole_param.rb b/test/win32ole/test_win32ole_param.rb index 09452d1927..7145ce6154 100644 --- a/test/win32ole/test_win32ole_param.rb +++ b/test/win32ole/test_win32ole_param.rb @@ -43,7 +43,7 @@ if defined?(WIN32OLE_PARAM) assert_equal("OverWriteFiles", param.name) assert_equal(WIN32OLE_PARAM, param.class) assert_equal(true, param.default) - assert_equal("#<WIN32OLE_PARAM:OverWriteFiles=true>", param.inspect) + assert_equal("#<WIN32OLE::Param:OverWriteFiles=true>", param.inspect) end def test_name @@ -91,8 +91,8 @@ if defined?(WIN32OLE_PARAM) end def test_inspect - assert_equal("#<WIN32OLE_PARAM:Source>", @param_source.inspect) - assert_equal("#<WIN32OLE_PARAM:OverWriteFiles=true>", @param_overwritefiles.inspect) + assert_equal("#<WIN32OLE::Param:Source>", @param_source.inspect) + assert_equal("#<WIN32OLE::Param:OverWriteFiles=true>", @param_overwritefiles.inspect) end end end diff --git a/test/win32ole/test_win32ole_type.rb b/test/win32ole/test_win32ole_type.rb index 485b390d5c..9f4d7f99f3 100644 --- a/test/win32ole/test_win32ole_type.rb +++ b/test/win32ole/test_win32ole_type.rb @@ -178,7 +178,7 @@ if defined?(WIN32OLE_TYPE) end def test_inspect - assert_equal("#<WIN32OLE_TYPE:Shell>", @ole_type.inspect) + assert_equal("#<WIN32OLE::Type:Shell>", @ole_type.inspect) end # WIN32OLE_TYPE.typelibs will be obsoleted. diff --git a/test/win32ole/test_win32ole_typelib.rb b/test/win32ole/test_win32ole_typelib.rb index 321c019e53..a865d5b4b1 100644 --- a/test/win32ole/test_win32ole_typelib.rb +++ b/test/win32ole/test_win32ole_typelib.rb @@ -110,7 +110,7 @@ if defined?(WIN32OLE_TYPELIB) def test_inspect tlib = WIN32OLE_TYPELIB.new("Microsoft Shell Controls And Automation") - assert_equal("#<WIN32OLE_TYPELIB:Microsoft Shell Controls And Automation>", tlib.inspect) + assert_equal("#<WIN32OLE::TypeLib:Microsoft Shell Controls And Automation>", tlib.inspect) end end diff --git a/test/win32ole/test_win32ole_variable.rb b/test/win32ole/test_win32ole_variable.rb index 8af3f987a8..cc4e91123b 100644 --- a/test/win32ole/test_win32ole_variable.rb +++ b/test/win32ole/test_win32ole_variable.rb @@ -58,8 +58,8 @@ if defined?(WIN32OLE_VARIABLE) end def test_inspect - assert_equal("#<WIN32OLE_VARIABLE:ssfDESKTOP=0>", @var1.inspect) - assert_equal("#<WIN32OLE_VARIABLE:UILevel=nil>", @var2.inspect) + assert_equal("#<WIN32OLE::Variable:ssfDESKTOP=0>", @var1.inspect) + assert_equal("#<WIN32OLE::Variable:UILevel=nil>", @var2.inspect) end end |