diff options
Diffstat (limited to 'activesupport/test/core_ext/enumerable_test.rb')
-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 0ff2eb1c81..af183dace3 100644 --- a/activesupport/test/core_ext/enumerable_test.rb +++ b/activesupport/test/core_ext/enumerable_test.rb @@ -37,7 +37,7 @@ class EnumerableTests < Test::Unit::TestCase end def test_nil_sums - expected_raise = RUBY_VERSION < '1.9.0' ? TypeError : NoMethodError + expected_raise = TypeError assert_raise(expected_raise) { [5, 15, nil].sum } |