1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test/core_ext/array
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
..
access_test.rb
conversions_test.rb
extract_options_test.rb
grouping_test.rb Raise a descriptive error if non-positive integer passed to in_groups_of. 2014-07-30 20:39:53 -07:00
prepend_append_test.rb
wrap_test.rb