From ae042f21fb695fc80eb19273fa542e8dad85f19f Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 2 Jun 2015 02:18:44 +0000 Subject: use assert_raise git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/test_syslog.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/test_syslog.rb') diff --git a/test/test_syslog.rb b/test/test_syslog.rb index 3164d079fc..7f1f76fcb6 100644 --- a/test/test_syslog.rb +++ b/test/test_syslog.rb @@ -11,7 +11,7 @@ end class TestSyslog < Test::Unit::TestCase def test_new - assert_raises(NoMethodError) { + assert_raise(NoMethodError) { Syslog.new } end @@ -37,7 +37,7 @@ class TestSyslog < Test::Unit::TestCase assert_equal(Syslog::LOG_USER, Syslog.facility) # open without close - assert_raises(RuntimeError) { + assert_raise(RuntimeError) { Syslog.open } @@ -88,7 +88,7 @@ class TestSyslog < Test::Unit::TestCase end def test_close - assert_raises(RuntimeError) { + assert_raise(RuntimeError) { Syslog.close } end -- cgit v1.2.3