summaryrefslogtreecommitdiff
path: root/test/win32ole
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-18 00:36:01 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-18 00:36:01 +0000
commit7a514fc6f190a1c935e1d63bd2cbd6af6764e627 (patch)
tree058d9da3177c0d428b3396f1ae1d295895ad37c0 /test/win32ole
parentfe6aa0e16a900d09b6d7e4a832993932a7b602c4 (diff)
* test/win32ole/test_win32ole_event.rb (TestWIN32OLE_EVENT): use
standard skip method to skip tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/win32ole')
-rw-r--r--test/win32ole/test_win32ole_event.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/win32ole/test_win32ole_event.rb b/test/win32ole/test_win32ole_event.rb
index 7e7ee10..03e4dcd 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