diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-07 09:33:21 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-07 09:33:21 +0900 |
commit | 21703382393c87212c27c988420ee5c133c1aa9f (patch) | |
tree | 7d4c19df98256b8c184c45bfa04db9c6655dd0f2 /activesupport/test/core_ext/array | |
parent | 134eaca7e2f32651eb5bbbcbea8fb990bff22b08 (diff) | |
parent | 87468284d523d5e760445633666232840777e312 (diff) | |
download | rails-21703382393c87212c27c988420ee5c133c1aa9f.tar.gz rails-21703382393c87212c27c988420ee5c133c1aa9f.tar.bz2 rails-21703382393c87212c27c988420ee5c133c1aa9f.zip |
Merge pull request #35498 from sobrinho/fix-including-excluding-flatten
Fix including/excluding flattening
Diffstat (limited to 'activesupport/test/core_ext/array')
-rw-r--r-- | activesupport/test/core_ext/array/access_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/array/access_test.rb b/activesupport/test/core_ext/array/access_test.rb index 8f89c3f25c..427b058925 100644 --- a/activesupport/test/core_ext/array/access_test.rb +++ b/activesupport/test/core_ext/array/access_test.rb @@ -35,11 +35,13 @@ class AccessTest < ActiveSupport::TestCase def test_including assert_equal [1, 2, 3, 4, 5], [1, 2, 4].including(3, 5).sort assert_equal [1, 2, 3, 4, 5], [1, 2, 4].including([3, 5]).sort + assert_equal [[0, 1], [1, 0]], [[0, 1]].including([[1, 0]]) end def test_excluding assert_equal [1, 2, 4], [1, 2, 3, 4, 5].excluding(3, 5) assert_equal [1, 2, 4], [1, 2, 3, 4, 5].excluding([3, 5]) + assert_equal [[0, 1]], [[0, 1], [1, 0]].excluding([[1, 0]]) end def test_without |