summaryrefslogtreecommitdiff
path: root/test/fiddle/test_cparser.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 04:37:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 04:37:13 +0000
commit068f312a7c642a1b6c358c17ef83421756568545 (patch)
tree11ce5c67053f28051a34523281a8ad2f5b670d6e /test/fiddle/test_cparser.rb
parenta2845a44ffd3c9ddef704dac1ba1fa2766a64555 (diff)
use assert_raise
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52384 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 4d4799d8d6..2810e393b2 100644
--- a/test/fiddle/test_cparser.rb
+++ b/test/fiddle/test_cparser.rb
@@ -60,7 +60,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
@@ -92,7 +92,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