diff options
author | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-25 08:16:44 +0000 |
---|---|---|
committer | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-25 08:16:44 +0000 |
commit | 910465abdb87a1bd4adad4b8d5dd2f7c4755314d (patch) | |
tree | 7d27e7a27c033f0b556cdfe3de4b7a8ff427769e /test/win32ole | |
parent | 63d5fe1070c88d1e275205ca68e1d9a8244266ed (diff) | |
download | ruby-910465abdb87a1bd4adad4b8d5dd2f7c4755314d.tar.gz ruby-910465abdb87a1bd4adad4b8d5dd2f7c4755314d.tar.xz ruby-910465abdb87a1bd4adad4b8d5dd2f7c4755314d.zip |
avoid Argument Error.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/win32ole')
-rw-r--r-- | test/win32ole/test_win32ole_event.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/win32ole/test_win32ole_event.rb b/test/win32ole/test_win32ole_event.rb index ca6d4bed7..0945eac78 100644 --- a/test/win32ole/test_win32ole_event.rb +++ b/test/win32ole/test_win32ole_event.rb @@ -42,8 +42,8 @@ if defined?(WIN32OLE_EVENT) def test_on_event3 ev = WIN32OLE_EVENT.new(@ie, 'DWebBrowserEvents') - ev.on_event {handler1} - ev.on_event {handler2} + ev.on_event {|*args| handler1} + ev.on_event {|*args| handler2} @ie.gohome while @ie.busy WIN32OLE_EVENT.message_loop @@ -53,8 +53,8 @@ if defined?(WIN32OLE_EVENT) def test_on_event4 ev = WIN32OLE_EVENT.new(@ie, 'DWebBrowserEvents') - ev.on_event{handler1} - ev.on_event{handler2} + ev.on_event{|*args| handler1} + ev.on_event{|*args| handler2} ev.on_event('NavigateComplete'){|*args| handler3(*args)} @ie.gohome while @ie.busy |