aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-04-04 08:12:16 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-04-04 08:12:16 -0700
commita13758007d248ce856e0d9c9978feafb5c1d8bb9 (patch)
tree6dc42ae6e66b65f0a1bc27abae2407a078e662d3 /activesupport
parent16a6de5e9b40e19abf9196199d7157ddb19bae01 (diff)
parentecdd432f5746a525a11b872c73308b9b20dd88ad (diff)
downloadrails-a13758007d248ce856e0d9c9978feafb5c1d8bb9.tar.gz
rails-a13758007d248ce856e0d9c9978feafb5c1d8bb9.tar.bz2
rails-a13758007d248ce856e0d9c9978feafb5c1d8bb9.zip
Merge pull request #10076 from choudhuryanupam/master
Removed unused comma after loop variable
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/core_ext/enumerable_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/enumerable_test.rb b/activesupport/test/core_ext/enumerable_test.rb
index 0a1abac767..a00b2dcf35 100644
--- a/activesupport/test/core_ext/enumerable_test.rb
+++ b/activesupport/test/core_ext/enumerable_test.rb
@@ -24,10 +24,10 @@ class EnumerableTests < ActiveSupport::TestCase
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)