ruby-changes:27827
From: marcandre <ko1@a...>
Date: Sat, 23 Mar 2013 07:56:23 +0900 (JST)
Subject: [ruby-changes:27827] marcandRe: r39879 (trunk): * test_array.rb: Make test more precise
marcandre 2013-03-23 07:56:13 +0900 (Sat, 23 Mar 2013) New Revision: 39879 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39879 Log: * test_array.rb: Make test more precise Modified files: trunk/test/ruby/test_array.rb Index: test/ruby/test_array.rb =================================================================== --- test/ruby/test_array.rb (revision 39878) +++ test/ruby/test_array.rb (revision 39879) @@ -1911,7 +1911,7 @@ class TestArray < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_array.rb#L1911 ary = Object.new def ary.to_a; [1, 2]; end - assert_raise(TypeError, NoMethodError) {%w(a b).zip(ary)} + assert_raise(TypeError) {%w(a b).zip(ary)} def ary.each; [3, 4].each{|e|yield e}; end assert_equal([['a', 3], ['b', 4]], %w(a b).zip(ary)) def ary.to_ary; [5, 6]; end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/