mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Further simplify enumerable group_by test
This commit is contained in:
parent
a13758007d
commit
363c08fa60
1 changed files with 1 additions and 3 deletions
|
@ -25,9 +25,7 @@ class EnumerableTests < ActiveSupport::TestCase
|
|||
names = %w(marcel sam david jeremy)
|
||||
klass = Struct.new(:name)
|
||||
objects = (1..50).map do
|
||||
p = klass.new
|
||||
p.name = names.sort_by { rand }.first
|
||||
p
|
||||
klass.new names.sample
|
||||
end
|
||||
|
||||
enum = GenericEnumerable.new(objects)
|
||||
|
|
Loading…
Reference in a new issue