summaryrefslogtreecommitdiff
path: root/test/ruby/test_object.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-15 01:31:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-15 01:31:43 +0000
commit9f9201b85d282d6f1f1999bfab7ac22b26e2d768 (patch)
tree58a514ba2fa645500ebd4f8b4014414f812eb05d /test/ruby/test_object.rb
parent724e683e86f19cda02dfe3906fdf5adca539b94b (diff)
* test/ruby/test_arity.rb (TestArity#err_mess): use assert_raise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_object.rb')
-rw-r--r--test/ruby/test_object.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb
index 271ab600a2..d63886a81e 100644
--- a/test/ruby/test_object.rb
+++ b/test/ruby/test_object.rb
@@ -471,11 +471,11 @@ class TestObject < Test::Unit::TestCase
end
end
- e = assert_raises(ArgumentError, '[bug:6000]') do
+ e = assert_raise(ArgumentError, '[bug:6000]') do
[[p]].flatten
end
- assert_equal('respond_to? must accept 1 or 2 arguments (requires 3)', e.message)
+ assert_equal('respond_to? must accept 1 or 2 arguments (requires 3)', e.message)
end
def test_method_missing_passed_block