summaryrefslogtreecommitdiff
path: root/test/win32ole
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-20 11:55:10 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-20 11:55:10 +0000
commitc3a13f6cc4e62832b8bc89bc929b1e1683087bb8 (patch)
tree28efe06f9fc455bc3115750a29a59becf09946db /test/win32ole
parentdf45be0472a8bb87e1a7fb10f19cb7f35fd6e8e2 (diff)
* ext/win32ole/win32ole.c (ole_invoke): raise NoMethodError
when COM method is not found. [ruby-core:30160] [Bug #3277] * test/win32ole/test_win32ole.rb (test_no_method_error): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/win32ole')
-rw-r--r--test/win32ole/test_win32ole.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/win32ole/test_win32ole.rb b/test/win32ole/test_win32ole.rb
index 8c8528f..8d72272 100644
--- a/test/win32ole/test_win32ole.rb
+++ b/test/win32ole/test_win32ole.rb
@@ -55,6 +55,13 @@ if defined?(WIN32OLE)
assert_match(/^\(in setting property `compareMode': \)/, exc.message) #`
end
+ def test_no_method_error
+ exc = assert_raise(NoMethodError) {
+ @dict1.non_exist_method
+ }
+ assert_match(/non_exist_method/, exc.message)
+ end
+
def test_ole_methods
methods = @dict1.ole_methods
mnames = methods.collect {|m|