diff options
Diffstat (limited to 'test/win32ole/test_win32ole_event.rb')
-rw-r--r-- | test/win32ole/test_win32ole_event.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/win32ole/test_win32ole_event.rb b/test/win32ole/test_win32ole_event.rb index 7e7ee10222..03e4dcda9e 100644 --- a/test/win32ole/test_win32ole_event.rb +++ b/test/win32ole/test_win32ole_event.rb @@ -22,12 +22,12 @@ def ado_installed? end if defined?(WIN32OLE_EVENT) - dotest = ado_installed? - if !dotest - STDERR.puts("\n#{__FILE__} skipped(ActiveX Data Object Library not found.)") - end - if dotest - class TestWIN32OLE_EVENT < Test::Unit::TestCase + class TestWIN32OLE_EVENT < Test::Unit::TestCase + unless ado_installed? + def test_dummy_for_skip_message + skip "ActiveX Data Object Library not found" + end + else CONNSTR="Driver={Microsoft Text Driver (*.txt; *.csv)};DefaultDir=.;" module ADO end |