mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use Test::Unit::Runner instead of MiniTest::Unit
This commit is contained in:
parent
0598e87abf
commit
1e18f4e60f
Notes:
git
2021-09-11 08:48:37 +09:00
2 changed files with 4 additions and 4 deletions
|
@ -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 Test::Unit::Runner.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 Test::Unit::Runner.current_repeat_count > 0
|
||||
|
||||
foo = Foo.new
|
||||
assert_raise(NameError) { Foo.instance_method(:z) }
|
||||
|
|
|
@ -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 Test::Unit::Runner.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 Test::Unit::Runner.current_repeat_count > 0
|
||||
|
||||
if no_leap_seconds?
|
||||
assert_equal(0x80000000, Time.utc(2038, 1, 19, 3, 14, 8).tv_sec)
|
||||
|
|
Loading…
Add table
Reference in a new issue