summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-11 13:56:04 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-11 13:56:04 +0000
commitcf6f729213566343775ac99ef8a2238dd4f0bfac (patch)
treec675c4eaaa1a16b44edb77e7f4b12c0315cde11c /test
parent69c8feb253d7cd2f7fd6ec02763a35747f194bc4 (diff)
Fix indent and use as skipped message instead of comment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/gdbm/test_gdbm.rb2
-rw-r--r--test/test_find.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb
index 9e97eb3587..7f7ab6aab9 100644
--- a/test/gdbm/test_gdbm.rb
+++ b/test/gdbm/test_gdbm.rb
@@ -213,7 +213,7 @@ if defined? GDBM
end if defined? GDBM::NOLOCK # gdbm 1.8.0 specific
def test_s_open_error
- skip if Process.uid == 0 # because root can open anything
+ skip "because root can open anything" if Process.uid == 0
assert_instance_of(GDBM, gdbm = GDBM.open("#{@tmpdir}/#{@prefix}", 0))
assert_raise(Errno::EACCES, Errno::EWOULDBLOCK) {
diff --git a/test/test_find.rb b/test/test_find.rb
index 01b1fcc121..0e691214c5 100644
--- a/test/test_find.rb
+++ b/test/test_find.rb
@@ -104,7 +104,7 @@ class TestFind < Test::Unit::TestCase
def test_unreadable_dir
skip "no meaning test on Windows" if /mswin|mingw/ =~ RUBY_PLATFORM
- skip if Process.uid == 0 # because root can read anything
+ skip "because root can read anything" if Process.uid == 0
Dir.mktmpdir {|d|
Dir.mkdir(dir = "#{d}/dir")