From e25f03a6a5c7f7b923fd87e31baf81699a414ea6 Mon Sep 17 00:00:00 2001 From: marcandre Date: Fri, 22 Mar 2013 22:56:13 +0000 Subject: * test_array.rb: Make test more precise git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_array.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index a8b514c830..8a8af491c9 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -1911,7 +1911,7 @@ class TestArray < Test::Unit::TestCase 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 -- cgit v1.2.3