diff options
author | Xavier Noria <fxn@hashref.com> | 2009-11-09 22:05:31 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-11-09 22:16:51 +0100 |
commit | db2c0d79e3f9ba4fa921b7a122e9e7849729de64 (patch) | |
tree | b618926ddc352a130efdd7d8de0cd1736fdf6f31 /activesupport/test | |
parent | 329e7f44417c00a8d6fee337c288a463e9d64346 (diff) | |
download | rails-db2c0d79e3f9ba4fa921b7a122e9e7849729de64.tar.gz rails-db2c0d79e3f9ba4fa921b7a122e9e7849729de64.tar.bz2 rails-db2c0d79e3f9ba4fa921b7a122e9e7849729de64.zip |
Enumerable#none? is not needed for Ruby >= 1.8.7
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/enumerable_test.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/activesupport/test/core_ext/enumerable_test.rb b/activesupport/test/core_ext/enumerable_test.rb index a8e98891d3..66f5f9fbde 100644 --- a/activesupport/test/core_ext/enumerable_test.rb +++ b/activesupport/test/core_ext/enumerable_test.rb @@ -89,15 +89,4 @@ class EnumerableTests < Test::Unit::TestCase assert ![ 1, 2 ].many? {|x| x > 1 } assert [ 1, 2, 2 ].many? {|x| x > 1 } end - - def test_none - assert [].none? - assert [nil, false].none? - assert ![1].none? - - assert [].none? {|x| x > 1 } - assert ![ 2 ].none? {|x| x > 1 } - assert ![ 1, 2 ].none? {|x| x > 1 } - assert [ 1, 1 ].none? {|x| x > 1 } - end end |