diff options
Diffstat (limited to 'activesupport/test/core_ext/enumerable_test.rb')
-rw-r--r-- | activesupport/test/core_ext/enumerable_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/enumerable_test.rb b/activesupport/test/core_ext/enumerable_test.rb index 288ce14b2c..92db977a77 100644 --- a/activesupport/test/core_ext/enumerable_test.rb +++ b/activesupport/test/core_ext/enumerable_test.rb @@ -82,7 +82,8 @@ class EnumerableTests < Test::Unit::TestCase def test_none assert [].none? - assert [ 1 ].none? + assert [nil, false].none? + assert ![1].none? assert [].none? {|x| x > 1 } assert ![ 2 ].none? {|x| x > 1 } |