diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-15 01:40:29 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-15 01:40:29 +0000 |
commit | 8892cc5a8fbdc91c375f9b3b81051e153aefc268 (patch) | |
tree | 1acc08bdd14a5fee13640d714f8ee998a2285ebb /test/ruby | |
parent | bd407329df45d84b57fd74329882823d224aecc1 (diff) | |
download | ruby-8892cc5a8fbdc91c375f9b3b81051e153aefc268.tar.gz |
* test_lazy_enumerator: Test that map & flat_map also require a block
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_lazy_enumerator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_lazy_enumerator.rb b/test/ruby/test_lazy_enumerator.rb index f04d26ecbe..acd4843afb 100644 --- a/test/ruby/test_lazy_enumerator.rb +++ b/test/ruby/test_lazy_enumerator.rb @@ -370,7 +370,7 @@ EOS end def test_require_block - %i[select reject drop_while take_while].each do |method| + %i[select reject drop_while take_while map flat_map].each do |method| assert_raise(ArgumentError){ [].lazy.send(method) } end end |