diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-22 23:01:10 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-22 23:01:10 +0000 |
commit | 1a56e716b1c555e7ab717e3f8ab3a552391065a2 (patch) | |
tree | b36c4e7ce4a13b78ae09ca59af328f6f1a49e7b5 | |
parent | e25f03a6a5c7f7b923fd87e31baf81699a414ea6 (diff) | |
download | ruby-1a56e716b1c555e7ab717e3f8ab3a552391065a2.tar.gz |
* test_enum.rb: Make test more precise
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_enum.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_enum.rb b/test/ruby/test_enum.rb index 65e9135d69..ea873a4069 100644 --- a/test/ruby/test_enum.rb +++ b/test/ruby/test_enum.rb @@ -277,7 +277,7 @@ class TestEnumerable < 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([[1, 3], [2, 4], [3, nil], [1, nil], [2, nil]], @obj.zip(ary)) def ary.to_ary; [5, 6]; end |