summaryrefslogtreecommitdiff
path: root/test/fiddle/test_cparser.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-13 09:46:16 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-13 09:46:16 +0000
commit24873d1a0520ceef39c1c492c6b02dbbc186d8ff (patch)
treeb9932565137a7c95ed43e28ef43154e92c962eb3 /test/fiddle/test_cparser.rb
parent52e8254b548a06c67fc1c130040925d169b8d2b0 (diff)
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/test_cparser.rb')
-rw-r--r--test/fiddle/test_cparser.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fiddle/test_cparser.rb b/test/fiddle/test_cparser.rb
index 16134f5aa72..c1527bf85d8 100644
--- a/test/fiddle/test_cparser.rb
+++ b/test/fiddle/test_cparser.rb
@@ -61,7 +61,7 @@ module Fiddle
end
def test_undefined_ctype
- assert_raises(DLError) { parse_ctype('DWORD') }
+ assert_raise(DLError) { parse_ctype('DWORD') }
end
def test_undefined_ctype_with_type_alias
@@ -93,7 +93,7 @@ module Fiddle
end
def test_struct_undefined
- assert_raises(DLError) { parse_struct_signature(['int i', 'DWORD cb']) }
+ assert_raise(DLError) { parse_struct_signature(['int i', 'DWORD cb']) }
end
def test_struct_undefined_with_type_alias