Skip to content
This repository
Browse code

Merge pull request #10076 from choudhuryanupam/master

Removed unused comma after loop variable
  • Loading branch information...
commit a13758007d248ce856e0d9c9978feafb5c1d8bb9 2 parents 16a6de5 + ecdd432
Rafael Mendonça França rafaelfranca authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 activesupport/test/core_ext/enumerable_test.rb
4 activesupport/test/core_ext/enumerable_test.rb
@@ -24,10 +24,10 @@ def each
24 24 def test_group_by
25 25 names = %w(marcel sam david jeremy)
26 26 klass = Struct.new(:name)
27   - objects = (1..50).inject([]) do |people,|
  27 + objects = (1..50).map do
28 28 p = klass.new
29 29 p.name = names.sort_by { rand }.first
30   - people << p
  30 + p
31 31 end
32 32
33 33 enum = GenericEnumerable.new(objects)

0 comments on commit a137580

Please sign in to comment.
Something went wrong with that request. Please try again.