* 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
This commit is contained in:
parent
bab8dbf05b
commit
4bd7276247
@ -1,3 +1,8 @@
|
||||
Tue Apr 21 20:46:02 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_object.rb: renamed tests to explicitly class name.
|
||||
[fix GH-877] Patch by @yui-knk
|
||||
|
||||
Tue Apr 21 05:31:00 2015 Eric Wong <e@80x24.org>
|
||||
|
||||
* ext/socket/lib/socket.rb (connect_internal): avoid common exceptions
|
||||
|
@ -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) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user