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

ruby-changes:34482

From: hsbt <ko1@a...>
Date: Thu, 26 Jun 2014 18:27:28 +0900 (JST)
Subject: [ruby-changes:34482] hsbt:r46563 (trunk): * test/with_different_ofs.rb: move into test library directory.

hsbt	2014-06-26 18:27:22 +0900 (Thu, 26 Jun 2014)

  New Revision: 46563

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

  Log:
    * test/with_different_ofs.rb: move into test library directory.
    * test/csv/base.rb: fix require path for with_different_ofs.rb.
    * test/digest/test_digest_extend.rb: ditto.

  Added files:
    trunk/test/lib/with_different_ofs.rb
  Removed files:
    trunk/test/with_different_ofs.rb
  Modified files:
    trunk/ChangeLog
    trunk/test/csv/base.rb
    trunk/test/digest/test_digest_extend.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46562)
+++ ChangeLog	(revision 46563)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jun 26 18:18:28 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* test/with_different_ofs.rb: move into test library directory.
+	* test/csv/base.rb: fix require path for with_different_ofs.rb.
+	* test/digest/test_digest_extend.rb: ditto.
+
 Thu Jun 26 18:06:50 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* test/profile_test_all.rb: move into test library directory.
Index: test/with_different_ofs.rb
===================================================================
--- test/with_different_ofs.rb	(revision 46562)
+++ test/with_different_ofs.rb	(revision 46563)
@@ -1,17 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/test/with_different_ofs.rb#L0
-module DifferentOFS
-  module WithDifferentOFS
-    def setup
-      super
-      @ofs, $, = $,, "-"
-    end
-    def teardown
-      $, = @ofs
-      super
-    end
-  end
-
-  def self.extended(klass)
-    super(klass)
-    klass.const_set(:DifferentOFS, Class.new(klass).class_eval {include WithDifferentOFS}).name
-  end
-end
Index: test/digest/test_digest_extend.rb
===================================================================
--- test/digest/test_digest_extend.rb	(revision 46562)
+++ test/digest/test_digest_extend.rb	(revision 46563)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/test/digest/test_digest_extend.rb#L1
 require 'test/unit'
 require 'digest'
-require_relative '../with_different_ofs.rb'
+require_relative '../lib/with_different_ofs.rb'
 
 class TestDigestExtend < Test::Unit::TestCase
   extend DifferentOFS
Index: test/lib/with_different_ofs.rb
===================================================================
--- test/lib/with_different_ofs.rb	(revision 0)
+++ test/lib/with_different_ofs.rb	(revision 46563)
@@ -0,0 +1,17 @@ https://github.com/ruby/ruby/blob/trunk/test/lib/with_different_ofs.rb#L1
+module DifferentOFS
+  module WithDifferentOFS
+    def setup
+      super
+      @ofs, $, = $,, "-"
+    end
+    def teardown
+      $, = @ofs
+      super
+    end
+  end
+
+  def self.extended(klass)
+    super(klass)
+    klass.const_set(:DifferentOFS, Class.new(klass).class_eval {include WithDifferentOFS}).name
+  end
+end

Property changes on: test/lib/with_different_ofs.rb
___________________________________________________________________
Added: svn:eol-style
   + LF

Index: test/csv/base.rb
===================================================================
--- test/csv/base.rb	(revision 46562)
+++ test/csv/base.rb	(revision 46563)
@@ -2,7 +2,7 @@ require "test/unit" https://github.com/ruby/ruby/blob/trunk/test/csv/base.rb#L2
 
 require "csv"
 
-require_relative "../with_different_ofs.rb"
+require_relative "../lib/with_different_ofs.rb"
 
 class TestCSV < Test::Unit::TestCase
 end

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

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