Browse files

Merge pull request #10076 from choudhuryanupam/master

Removed unused comma after loop variable
  • Loading branch information...
2 parents 16a6de5 + ecdd432 commit a13758007d248ce856e0d9c9978feafb5c1d8bb9 @rafaelfranca rafaelfranca committed Apr 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/test/core_ext/enumerable_test.rb
View
4 activesupport/test/core_ext/enumerable_test.rb
@@ -24,10 +24,10 @@ def each
def test_group_by
names = %w(marcel sam david jeremy)
klass = Struct.new(:name)
- objects = (1..50).inject([]) do |people,|
+ objects = (1..50).map do
p = klass.new
p.name = names.sort_by { rand }.first
- people << p
+ p
end
enum = GenericEnumerable.new(objects)

0 comments on commit a137580

Please sign in to comment.