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

ruby-changes:15278

From: naruse <ko1@a...>
Date: Fri, 2 Apr 2010 06:39:56 +0900 (JST)
Subject: [ruby-changes:15278] Ruby:r27163 (trunk): fix file path for building at other than src dir.

naruse	2010-04-02 06:36:17 +0900 (Fri, 02 Apr 2010)

  New Revision: 27163

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

  Log:
    fix file path for building at other than src dir.

  Modified files:
    trunk/test/rdoc/test_rdoc_rdoc.rb

Index: test/rdoc/test_rdoc_rdoc.rb
===================================================================
--- test/rdoc/test_rdoc_rdoc.rb	(revision 27162)
+++ test/rdoc/test_rdoc_rdoc.rb	(revision 27163)
@@ -15,8 +15,8 @@
   end
 
   def test_gather_files
-    assert_equal(%w[lib/rdoc.rb],
-                 @rdoc.gather_files(%w[lib/rdoc.rb lib/rdoc.rb]))
+    file = File.expand_path("../../../lib/rdoc.rb", __FILE__)
+    assert_equal([file], @rdoc.gather_files([file, file]))
   end
 
   def test_read_file_contents

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

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