diff options
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/core_ext/enumerable_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/enumerable_test.rb b/activesupport/test/core_ext/enumerable_test.rb index 0a1abac767..161e9ba1c3 100644 --- a/activesupport/test/core_ext/enumerable_test.rb +++ b/activesupport/test/core_ext/enumerable_test.rb @@ -24,7 +24,7 @@ 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).inject([]) do |people| p = klass.new p.name = names.sort_by { rand }.first people << p |