ruby-changes:38284
From: hsbt <ko1@a...>
Date: Tue, 21 Apr 2015 20:46:28 +0900 (JST)
Subject: [ruby-changes:38284] hsbt:r50365 (trunk): * test/ruby/test_object.rb: renamed tests to explicitly class name.
hsbt 2015-04-21 20:46:07 +0900 (Tue, 21 Apr 2015) New Revision: 50365 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50365 Log: * test/ruby/test_object.rb: renamed tests to explicitly class name. [fix GH-877] Patch by @yui-knk Modified files: trunk/ChangeLog trunk/test/ruby/test_object.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 50364) +++ ChangeLog (revision 50365) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Apr 21 20:46:02 2015 SHIBATA Hiroshi <hsbt@r...> + + * 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@8...> * ext/socket/lib/socket.rb (connect_internal): avoid common exceptions Index: test/ruby/test_object.rb =================================================================== --- test/ruby/test_object.rb (revision 50364) +++ test/ruby/test_object.rb (revision 50365) @@ -238,7 +238,7 @@ class TestObject < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_object.rb#L238 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 https://github.com/ruby/ruby/blob/trunk/test/ruby/test_object.rb#L248 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) } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/