aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/array
Commit message (Collapse)AuthorAgeFilesLines
* Make sure Array#to_sentence always returns a StringDavid Cornu2015-03-231-0/+6
|
* Move Array#without from Grouping to Access concern and add dedicated test ↵David Heinemeier Hansson2015-03-021-0/+4
| | | | (relates to #19157)
* Raise a descriptive error if non-positive integer passed to in_groups_of.Xavier Shay2014-07-301-0/+6
| | | | | | | | | | This is more consistent than the current behaviour of raising a `ZeroDivisionError: divided by 0` error when 0 is given, which can be non-obvious especially if `in_groups_of` is part of a longer chain of methods. The negative case was ok - "ArgumentError: invalid slice size" - but this error is clearer still.
* Add missing test case for Array#to_sentence, collect all test cases for ↵Akshay Vishnoi2014-07-291-22/+8
| | | | Object#to_param at one place and avoid repitition
* Move array test files under arrayAkshay Vishnoi2014-07-296-0/+495