diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-13 09:46:16 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-13 09:46:16 +0000 |
commit | 24873d1a0520ceef39c1c492c6b02dbbc186d8ff (patch) | |
tree | b9932565137a7c95ed43e28ef43154e92c962eb3 /test/fiddle/helper.rb | |
parent | 52e8254b548a06c67fc1c130040925d169b8d2b0 (diff) | |
download | ruby-24873d1a0520ceef39c1c492c6b02dbbc186d8ff.tar.gz |
Use Test::Unit::TestCase instead of MiniTest::Unit::TestCase. Because
tests of fiddle already used customized assertions of ruby core.
* test/fiddle/helper.rb: Use Test::Unit::TestCase for base class of
testcase.
* test/fiddle/test_*.rb: Use assert_raise instead of assert_raises.
Remove needless includes for Test::Unit::Assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fiddle/helper.rb')
-rw-r--r-- | test/fiddle/helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb index 461f1878a8..d1bbe24b74 100644 --- a/test/fiddle/helper.rb +++ b/test/fiddle/helper.rb @@ -1,5 +1,5 @@ # frozen_string_literal: false -require 'minitest/autorun' +require 'test/unit' require 'fiddle' # FIXME: this is stolen from DL and needs to be refactored. @@ -108,7 +108,7 @@ Fiddle::LIBC_SO = libc_so Fiddle::LIBM_SO = libm_so module Fiddle - class TestCase < MiniTest::Unit::TestCase + class TestCase < Test::Unit::TestCase def setup @libc = Fiddle.dlopen(LIBC_SO) @libm = Fiddle.dlopen(LIBM_SO) |