diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2015-03-02 08:46:20 -0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2015-03-02 08:46:29 -0800 |
commit | 521318333eaa2654b9ad535c592281ae9efb9113 (patch) | |
tree | 6cb51453487ceed01d529ae23367afffb1bcfc21 /activesupport/test/core_ext/array | |
parent | 3f4964299acd1351a519293991b97dd78b775073 (diff) | |
download | rails-521318333eaa2654b9ad535c592281ae9efb9113.tar.gz rails-521318333eaa2654b9ad535c592281ae9efb9113.tar.bz2 rails-521318333eaa2654b9ad535c592281ae9efb9113.zip |
Move Array#without from Grouping to Access concern and add dedicated test (relates to #19157)
Diffstat (limited to 'activesupport/test/core_ext/array')
-rw-r--r-- | activesupport/test/core_ext/array/access_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/array/access_test.rb b/activesupport/test/core_ext/array/access_test.rb index f14f64421d..3f1e0c4cb4 100644 --- a/activesupport/test/core_ext/array/access_test.rb +++ b/activesupport/test/core_ext/array/access_test.rb @@ -27,4 +27,8 @@ class AccessTest < ActiveSupport::TestCase assert_equal array[4], array.fifth assert_equal array[41], array.forty_two end + + def test_without + assert_equal [1, 2, 4], [1, 2, 3, 4, 5].without(3, 5) + end end |