diff options
author | ryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-25 07:34:49 +0000 |
---|---|---|
committer | ryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-25 07:34:49 +0000 |
commit | 7ab330203aa2409578bdd9f8ee5ac06b9f69eff3 (patch) | |
tree | 5e6a2a97de5d1c9047f566c0b708dd3e93ecb4f3 | |
parent | ea94d40f4a44bef1801faf147c469220d1259d4c (diff) | |
download | ruby-7ab330203aa2409578bdd9f8ee5ac06b9f69eff3.tar.gz |
Not a typo. The name is better plural. Better English and more consistent with the other assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/mini/test.rb | 2 | ||||
-rw-r--r-- | lib/test/unit/assertions.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/mini/test.rb b/lib/mini/test.rb index e8b12179e7..88cc9deafc 100644 --- a/lib/mini/test.rb +++ b/lib/mini/test.rb @@ -129,7 +129,7 @@ module Mini assert o1.__send__(op, o2), msg end - def assert_raise *exp + def assert_raises *exp msg = String === exp.last ? exp.pop : nil should_raise = false begin diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb index c032adafaa..6c29b78096 100644 --- a/lib/test/unit/assertions.rb +++ b/lib/test/unit/assertions.rb @@ -34,7 +34,7 @@ end module Test::Unit module Assertions # deprecations tu_deprecate :assert_nothing_thrown, :assert_nothing_raised # 2009-06-01 - tu_deprecate :assert_raises, :assert_raise # 2010-06-01 + tu_deprecate :assert_raise, :assert_raises # 2010-06-01 tu_deprecate :assert_not_equal, :refute_equal # 2009-06-01 tu_deprecate :assert_no_match, :refute_match # 2009-06-01 tu_deprecate :assert_not_nil, :refute_nil # 2009-06-01 |