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

ruby-changes:33519

From: nobu <ko1@a...>
Date: Wed, 16 Apr 2014 23:16:25 +0900 (JST)
Subject: [ruby-changes:33519] nobu:r45600 (trunk): test_fileutils.rb: test :preserve option

nobu	2014-04-16 23:16:19 +0900 (Wed, 16 Apr 2014)

  New Revision: 45600

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45600

  Log:
    test_fileutils.rb: test :preserve option
    
    * test/fileutils/test_fileutils.rb (test_cp_preserve_permissions):
      should test with setting :preserve option.

  Modified files:
    trunk/test/fileutils/test_fileutils.rb
Index: test/fileutils/test_fileutils.rb
===================================================================
--- test/fileutils/test_fileutils.rb	(revision 45599)
+++ test/fileutils/test_fileutils.rb	(revision 45600)
@@ -272,7 +272,7 @@ class TestFileUtils < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/fileutils/test_fileutils.rb#L272
     bug4507 = '[ruby-core:35518]'
     touch 'tmp/cptmp'
     chmod 0755, 'tmp/cptmp'
-    cp 'tmp/cptmp', 'tmp/cptmp2'
+    cp 'tmp/cptmp', 'tmp/cptmp2', :preserve => true
     assert_equal_filemode('tmp/cptmp', 'tmp/cptmp2', bug4507)
   end
 

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

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