1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

5 commits

Author SHA1 Message Date
David Cornu
a64f3e4195 Make sure Array#to_sentence always returns a String 2015-03-23 15:47:37 -04:00
David Heinemeier Hansson
521318333e Move Array#without from Grouping to Access concern and add dedicated test (relates to #19157) 2015-03-02 08:46:29 -08:00
Xavier Shay
acac631cc9 Raise a descriptive error if non-positive integer passed to in_groups_of.
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.
2014-07-30 20:39:53 -07:00
Akshay Vishnoi
6bc7e27c19 Add missing test case for Array#to_sentence, collect all test cases for Object#to_param at one place and avoid repitition 2014-07-29 20:05:36 +05:30
Akshay Vishnoi
00979fdb2c Move array test files under array 2014-07-29 18:13:52 +05:30