summaryrefslogtreecommitdiff
path: root/test/win32ole/test_win32ole.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/win32ole/test_win32ole.rb')
-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 40b6a81544..5b237370b5 100644
--- a/test/win32ole/test_win32ole.rb
+++ b/test/win32ole/test_win32ole.rb
@@ -495,6 +495,13 @@ if defined?(WIN32OLE)
def test_const_LOCALE_USER_DEFAULT
assert_equal(0x0400, WIN32OLE::LOCALE_USER_DEFAULT);
end
+
+ def test_method_missing
+ assert_raise(ArgumentError) {@dict1.method_missing}
+ assert_raise(TypeError) {@dict1.method_missing(1)}
+ assert_raise(ArgumentError) {@dict1.method_missing("foo=")}
+ assert_raise(ArgumentError) {@dict1.method_missing("foo=", 1, 2)}
+ end
end
# test of subclass of WIN32OLE