summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-09-07 10:03:53 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-09-11 08:48:03 +0900
commit871e7b5f55f079e04fdc3f6f42eaa139e3a3345a (patch)
tree111a6ecd09b0e7066ebbb430c7e747903de3bce2 /test
parent7456cbdd09b3f0e6d58cd16d8bd060a397d2156b (diff)
Use MiniTest
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4813
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_refinement.rb4
-rw-r--r--test/ruby/test_time.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_refinement.rb b/test/ruby/test_refinement.rb
index 822de47f6a..db0dde278b 100644
--- a/test/ruby/test_refinement.rb
+++ b/test/ruby/test_refinement.rb
@@ -225,7 +225,7 @@ class TestRefinement < Test::Unit::TestCase
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
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 99f2e8048d..6c9c7daa39 100644
--- a/test/ruby/test_time.rb
+++ b/test/ruby/test_time.rb
@@ -110,7 +110,7 @@ class TestTime < Test::Unit::TestCase
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
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)