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

ruby-changes:67873

From: Hiroshi <ko1@a...>
Date: Sat, 11 Sep 2021 08:48:20 +0900 (JST)
Subject: [ruby-changes:67873] 871e7b5f55 (master): Use MiniTest

https://git.ruby-lang.org/ruby.git/commit/?id=871e7b5f55

From 871e7b5f55f079e04fdc3f6f42eaa139e3a3345a Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Tue, 7 Sep 2021 10:03:53 +0900
Subject: Use MiniTest

---
 test/ruby/test_refinement.rb     | 4 ++--
 test/ruby/test_time.rb           | 4 ++--
 tool/lib/test/unit/assertions.rb | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/ruby/test_refinement.rb b/test/ruby/test_refinement.rb
index 822de47..db0dde2 100644
--- a/test/ruby/test_refinement.rb
+++ b/test/ruby/test_refinement.rb
@@ -225,7 +225,7 @@ class TestRefinement < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_refinement.rb#L225
     end
   end
   def test_method_should_use_refinements
-    skip if Minitest::Unit.current_repeat_count > 0
+    skip if MiniTest::Unit.current_repeat_count > 0
 
     foo = Foo.new
     assert_raise(NameError) { foo.method(:z) }
@@ -248,7 +248,7 @@ class TestRefinement < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_refinement.rb#L248
     end
   end
   def test_instance_method_should_use_refinements
-    skip if Minitest::Unit.current_repeat_count > 0
+    skip if MiniTest::Unit.current_repeat_count > 0
 
     foo = Foo.new
     assert_raise(NameError) { Foo.instance_method(:z) }
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb
index 99f2e80..6c9c7da 100644
--- a/test/ruby/test_time.rb
+++ b/test/ruby/test_time.rb
@@ -110,7 +110,7 @@ class TestTime < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_time.rb#L110
       assert_equal(946684800, Time.utc(2000, 1, 1, 0, 0, 0).tv_sec)
 
       # Giveup to try 2nd test because some state is changed.
-      skip if Minitest::Unit.current_repeat_count > 0
+      skip if MiniTest::Unit.current_repeat_count > 0
 
       assert_equal(0x7fffffff, Time.utc(2038, 1, 19, 3, 14, 7).tv_sec)
       assert_equal(0x80000000, Time.utc(2038, 1, 19, 3, 14, 8).tv_sec)
@@ -1168,7 +1168,7 @@ class TestTime < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_time.rb#L1168
 
   def test_2038
     # Giveup to try 2nd test because some state is changed.
-    skip if Minitest::Unit.current_repeat_count > 0
+    skip if MiniTest::Unit.current_repeat_count > 0
 
     if no_leap_seconds?
       assert_equal(0x80000000, Time.utc(2038, 1, 19, 3, 14, 8).tv_sec)
diff --git a/tool/lib/test/unit/assertions.rb b/tool/lib/test/unit/assertions.rb
index 374f137..c179f11 100644
--- a/tool/lib/test/unit/assertions.rb
+++ b/tool/lib/test/unit/assertions.rb
@@ -596,7 +596,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit/assertions.rb#L596
       # Takes a block and wraps it with the runner's shared mutex.
 
       def synchronize
-        Minitest::Unit.runner.synchronize do
+        MiniTest::Unit.runner.synchronize do
           yield
         end
       end
-- 
cgit v1.1


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

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