diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-22 22:56:13 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-22 22:56:13 +0000 |
commit | e25f03a6a5c7f7b923fd87e31baf81699a414ea6 (patch) | |
tree | 343f657f7e414681eb34f8ad8b7939e8911c9504 /test/ruby/test_array.rb | |
parent | d90128833b04d61c17f13513bccc6fcc79e44c48 (diff) | |
download | ruby-e25f03a6a5c7f7b923fd87e31baf81699a414ea6.tar.gz |
* test_array.rb: Make test more precise
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_array.rb')
-rw-r--r-- | test/ruby/test_array.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |