summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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 8c8528fde3..8d72272b9c 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|