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

ruby-changes:37580

From: nobu <ko1@a...>
Date: Fri, 20 Feb 2015 17:20:10 +0900 (JST)
Subject: [ruby-changes:37580] nobu:r49661 (trunk): test_file_exhaustive.rb: remove useless assignment

nobu	2015-02-20 17:20:05 +0900 (Fri, 20 Feb 2015)

  New Revision: 49661

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

  Log:
    test_file_exhaustive.rb: remove useless assignment
    
    * test/ruby/test_file_exhaustive.rb (make_tmp_filename): not
      assign to instance variable, @hardlinkfile.

  Modified files:
    trunk/test/ruby/test_file_exhaustive.rb
Index: test/ruby/test_file_exhaustive.rb
===================================================================
--- test/ruby/test_file_exhaustive.rb	(revision 49660)
+++ test/ruby/test_file_exhaustive.rb	(revision 49661)
@@ -46,7 +46,7 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L46
   end
 
   def make_tmp_filename(prefix)
-    @hardlinkfile = @dir + "/" + prefix + File.basename(__FILE__) + ".#{$$}.test"
+    "#{@dir}/#{prefix}#{File.basename(__FILE__)}.#{$$}.test"
   end
 
   def test_path

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

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