aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-26 09:33:46 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-26 09:33:46 +0000
commit345c645fa028d7bf3109a1dafbfdec901a48bbdb (patch)
tree5445ffed627b18b7f0411cf6a346314bf922c350
parent6e70421c68b8c2a2860c29b06e146dc0be3656c4 (diff)
downloadruby-345c645fa028d7bf3109a1dafbfdec901a48bbdb.tar.gz
* ext/win32ole/lib/win32ole.rb (methods): COM method elements should be
symbol in return value of methods. * test/win32ole/test_win32ole.rb ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/win32ole/lib/win32ole.rb2
-rw-r--r--test/win32ole/test_win32ole.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/win32ole/lib/win32ole.rb b/ext/win32ole/lib/win32ole.rb
index 635510b277..d7034f7845 100644
--- a/ext/win32ole/lib/win32ole.rb
+++ b/ext/win32ole/lib/win32ole.rb
@@ -19,7 +19,7 @@ if defined?(WIN32OLE)
# #=> Did you mean? Add
#
def methods(*args)
- super + ole_methods_safely.map(&:name)
+ super + ole_methods_safely.map(&:name).map(&:to_sym)
end
private
diff --git a/test/win32ole/test_win32ole.rb b/test/win32ole/test_win32ole.rb
index adc7c9c83a..7dda36ce96 100644
--- a/test/win32ole/test_win32ole.rb
+++ b/test/win32ole/test_win32ole.rb
@@ -74,7 +74,7 @@ if defined?(WIN32OLE)
def test_methods
methods = @dict1.methods
- assert_include(methods, 'Add')
+ assert_include(methods, :Add)
end
def test_ole_func_methods