Skip to content

Commit c0586b2

Browse files
committed
Use omit instead of skip for test-unit
1 parent bc72c7e commit c0586b2

7 files changed

+7
-7
lines changed

test/win32ole/test_err_in_callback.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def available_adodb?
3838
end
3939

4040
def test_err_in_callback
41-
skip "'ADODB.Connection' is not available" unless available_adodb?
41+
omit "'ADODB.Connection' is not available" unless available_adodb?
4242
if @ruby
4343
Dir.mktmpdir do |tmpdir|
4444
logfile = File.join(tmpdir, "test_err_in_callback.log")

test/win32ole/test_win32ole_event.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def exec_notification_query_async
136136
@wmi.ExecNotificationQueryAsync(@sws, @sql)
137137
rescue => e
138138
if /OLE error code:80041008 in SWbemServicesEx/ =~ e.message
139-
skip "No administrator privilege?"
139+
omit "No administrator privilege?"
140140
end
141141
raise
142142
end

test/win32ole/test_win32ole_method_event.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class TestWIN32OLE_METHOD_EVENT < Test::Unit::TestCase
1111
unless AvailableOLE.sysmon_available?
1212
def test_dummy_for_skip_message
13-
skip 'System Monitor Control is not available'
13+
omit 'System Monitor Control is not available'
1414
end
1515
else
1616
def setup

test/win32ole/test_win32ole_param_event.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_output?
2323
end
2424
else
2525
def test_dummy_for_skip_message
26-
skip 'ActiveX Data Object Library and MS XML not found'
26+
omit 'ActiveX Data Object Library and MS XML not found'
2727
end
2828
end
2929
end

test/win32ole/test_win32ole_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def rbcomtest_exist?
7676
class TestWIN32OLE_RECORD_BY_RBCOMTEST < Test::Unit::TestCase
7777
unless rbcomtest_exist?
7878
def test_dummy_for_skip_message
79-
skip "#{PROGID_RBCOMTEST} for WIN32OLE_RECORD test is not installed"
79+
omit "#{PROGID_RBCOMTEST} for WIN32OLE_RECORD test is not installed"
8080
end
8181
else
8282
def setup

test/win32ole/test_win32ole_type_event.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class TestWIN32OLE_TYPE_EVENT < Test::Unit::TestCase
1313
unless AvailableOLE.sysmon_available?
1414
def test_dummy_for_skip_message
15-
skip 'System Monitor Control is not available'
15+
omit 'System Monitor Control is not available'
1616
end
1717
else
1818

test/win32ole/test_word.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def word_installed?
3535
class TestWIN32OLE_WITH_WORD < Test::Unit::TestCase
3636
unless word_installed?
3737
def test_dummy_for_skip_message
38-
skip "Microsoft Word is not installed"
38+
omit "Microsoft Word is not installed"
3939
end
4040
else
4141
def setup

0 commit comments

Comments
 (0)