diff options
author | José Valim <jose.valim@gmail.com> | 2009-08-09 20:11:45 +0200 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-08-09 21:46:52 +0100 |
commit | ae47f7575da3dc3c74fa63136d00492ba4beb278 (patch) | |
tree | 0c134f8a0d4b5451dbf2222555a8d7e979248b95 | |
parent | 1382f4de1f9b0e443e7884bd4da53c20f0754568 (diff) | |
download | rails-ae47f7575da3dc3c74fa63136d00492ba4beb278.tar.gz rails-ae47f7575da3dc3c74fa63136d00492ba4beb278.tar.bz2 rails-ae47f7575da3dc3c74fa63136d00492ba4beb278.zip |
Improving test coverage for Range#sum [#2489]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
-rw-r--r-- | activesupport/test/core_ext/enumerable_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/enumerable_test.rb b/activesupport/test/core_ext/enumerable_test.rb index 66507d4652..4170de3dce 100644 --- a/activesupport/test/core_ext/enumerable_test.rb +++ b/activesupport/test/core_ext/enumerable_test.rb @@ -64,9 +64,9 @@ class EnumerableTests < Test::Unit::TestCase def test_enumerable_sums assert_equal 20, (1..4).sum { |i| i * 2 } assert_equal 10, (1..4).sum + assert_equal 10, (1..4.5).sum assert_equal 6, (1...4).sum assert_equal 'abc', ('a'..'c').sum - assert_raises(NoMethodError) { 1..2.5.sum } end def test_each_with_object |