Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 with 2 additions and 2 deletions.
  1. +2 −2 activesupport/test/core_ext/enumerable_test.rb
4 activesupport/test/core_ext/enumerable_test.rb
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.