use assert_raise

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-06-02 02:18:44 +00:00
parent 21f2c194bb
commit ae042f21fb
30 changed files with 100 additions and 100 deletions

View file

@ -64,7 +64,7 @@ class TestPrime < Test::Unit::TestCase
end
def test_new
exception = assert_raises(NoMethodError) { Prime.new }
exception = assert_raise(NoMethodError) { Prime.new }
end
def test_enumerator_succ