mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
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:
parent
21f2c194bb
commit
ae042f21fb
30 changed files with 100 additions and 100 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue