summaryrefslogtreecommitdiff
path: root/ext/win32ole/tests/testOLEMETHOD.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/win32ole/tests/testOLEMETHOD.rb')
-rw-r--r--ext/win32ole/tests/testOLEMETHOD.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/win32ole/tests/testOLEMETHOD.rb b/ext/win32ole/tests/testOLEMETHOD.rb
index 4f65ec96b4..b52052e669 100644
--- a/ext/win32ole/tests/testOLEMETHOD.rb
+++ b/ext/win32ole/tests/testOLEMETHOD.rb
@@ -22,6 +22,10 @@ class TestOLEMETHOD < RUNIT::TestCase
m = WIN32OLE_METHOD.new(@excel_app, 'Quit')
assert_equal('Quit', m.name)
end
+ def test_to_s
+ m = WIN32OLE_METHOD.new(@excel_app, 'Quit')
+ assert_equal('Quit', "#{m}")
+ end
def test_return_type
m = WIN32OLE_METHOD.new(@excel_app, 'ActiveCell')
assert_equal('Range', m.return_type)