diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-21 11:46:07 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-21 11:46:07 +0000 |
commit | 4bd7276247c92caa3fd7e381533e7d1edd9e472f (patch) | |
tree | e115e8e86465edb85aed924c6836965dba5aa787 /test/ruby/test_object.rb | |
parent | bab8dbf05bc900ccb139fc0e12f6babe7d623843 (diff) |
* test/ruby/test_object.rb: renamed tests to explicitly class name.
[fix GH-877] Patch by @yui-knk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_object.rb')
-rw-r--r-- | test/ruby/test_object.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb index d5b4a1b612..29ca2e58f1 100644 --- a/test/ruby/test_object.rb +++ b/test/ruby/test_object.rb @@ -238,7 +238,7 @@ class TestObject < Test::Unit::TestCase assert_equal(false, o.instance_variable_defined?(:@foo)) end - def test_convert_type + def test_convert_string o = Object.new def o.to_s; 1; end assert_raise(TypeError) { String(o) } @@ -248,7 +248,7 @@ class TestObject < Test::Unit::TestCase assert_raise(TypeError) { String(o) } end - def test_check_convert_type + def test_convert_array o = Object.new def o.to_a; 1; end assert_raise(TypeError) { Array(o) } |