diff options
author | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2014-05-23 21:32:52 +0530 |
---|---|---|
committer | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2014-05-23 21:32:52 +0530 |
commit | 0e9401733c55e3ca43e48ad2b9b60520ef57387f (patch) | |
tree | 920b4180720330ceca6d9f50fbd4a7dad74bc28c /activesupport/test | |
parent | 2fdddcee6fbc9f588285d8e5670303ffb533f170 (diff) | |
download | rails-0e9401733c55e3ca43e48ad2b9b60520ef57387f.tar.gz rails-0e9401733c55e3ca43e48ad2b9b60520ef57387f.tar.bz2 rails-0e9401733c55e3ca43e48ad2b9b60520ef57387f.zip |
revert 96525d63
`Array#to` is working for negative position
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/array_ext_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/array_ext_test.rb b/activesupport/test/core_ext/array_ext_test.rb index e0e54f47e4..789a490831 100644 --- a/activesupport/test/core_ext/array_ext_test.rb +++ b/activesupport/test/core_ext/array_ext_test.rb @@ -16,6 +16,8 @@ class ArrayExtAccessTests < ActiveSupport::TestCase assert_equal %w( a ), %w( a b c d ).to(0) assert_equal %w( a b c ), %w( a b c d ).to(2) assert_equal %w( a b c d ), %w( a b c d ).to(10) + assert_equal %w( a b c ), %w( a b c d ).to(-2) + assert_equal %w(), %w( a b c ).to(-10) end def test_second_through_tenth |