diff options
Diffstat (limited to 'ext/win32ole/tests/testOLEVARIABLE.rb')
-rw-r--r-- | ext/win32ole/tests/testOLEVARIABLE.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/win32ole/tests/testOLEVARIABLE.rb b/ext/win32ole/tests/testOLEVARIABLE.rb index b237d9b616..b4bb0b57d9 100644 --- a/ext/win32ole/tests/testOLEVARIABLE.rb +++ b/ext/win32ole/tests/testOLEVARIABLE.rb @@ -14,6 +14,13 @@ class TestOLEVARIABLE < RUNIT::TestCase assert(var_names.size > 0) assert(var_names.include?('xl3DColumn')) end + def test_to_s + classes = WIN32OLE_TYPE.ole_classes(MS_EXCEL_TYPELIB) + chart = classes.find {|c| c.name == 'XlChartType'} + var_names = chart.variables.collect {|m| "#{m}"} + assert(var_names.size > 0) + assert(var_names.include?('xl3DColumn')) + end def test_ole_type classes = WIN32OLE_TYPE.ole_classes(MS_EXCEL_TYPELIB) chart = classes.find {|c| c.name == 'XlChartType'} |