Skip to content

Commit

Permalink
Use Test::Unit::Runner instead of MiniTest::Unit
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Sep 10, 2021
1 parent 0598e87 commit 1e18f4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/ruby/test_refinement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def pow(*)
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) }
Expand All @@ -248,7 +248,7 @@ def abs
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) }
Expand Down
4 changes: 2 additions & 2 deletions test/ruby/test_time.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_timegm
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)
Expand Down Expand Up @@ -1168,7 +1168,7 @@ def test_1970

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)
Expand Down

0 comments on commit 1e18f4e

Please sign in to comment.