Skip to content

Commit

Permalink
* test/ruby/test_object.rb: renamed tests to explicitly class name.
Browse files Browse the repository at this point in the history
  [fix rubyGH-877] Patch by @yui-knk

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
hsbt committed Apr 21, 2015
1 parent bab8dbf commit 4bd7276
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/ruby/test_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def test_remove_instance_variable
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) }
Expand All @@ -248,7 +248,7 @@ def o.respond_to?(*) false; end
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) }
Expand Down

0 comments on commit 4bd7276

Please sign in to comment.