[前][次][番号順一覧][スレッド一覧]

ruby-changes:49654

From: kazu <ko1@a...>
Date: Thu, 11 Jan 2018 22:56:08 +0900 (JST)
Subject: [ruby-changes:49654] kazu:r61770 (trunk): Fix indent and use as skipped message instead of comment

kazu	2018-01-11 22:56:04 +0900 (Thu, 11 Jan 2018)

  New Revision: 61770

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61770

  Log:
    Fix indent and use as skipped message instead of comment

  Modified files:
    trunk/test/gdbm/test_gdbm.rb
    trunk/test/test_find.rb
Index: test/test_find.rb
===================================================================
--- test/test_find.rb	(revision 61769)
+++ test/test_find.rb	(revision 61770)
@@ -104,7 +104,7 @@ class TestFind < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_find.rb#L104
 
   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")
Index: test/gdbm/test_gdbm.rb
===================================================================
--- test/gdbm/test_gdbm.rb	(revision 61769)
+++ test/gdbm/test_gdbm.rb	(revision 61770)
@@ -213,7 +213,7 @@ if defined? GDBM https://github.com/ruby/ruby/blob/trunk/test/gdbm/test_gdbm.rb#L213
     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) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]