diff options
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/core_ext/enumerable_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activesupport/test/core_ext/enumerable_test.rb b/activesupport/test/core_ext/enumerable_test.rb index a00b2dcf35..6781e3c20e 100644 --- a/activesupport/test/core_ext/enumerable_test.rb +++ b/activesupport/test/core_ext/enumerable_test.rb @@ -25,9 +25,7 @@ class EnumerableTests < ActiveSupport::TestCase names = %w(marcel sam david jeremy) klass = Struct.new(:name) objects = (1..50).map do - p = klass.new - p.name = names.sort_by { rand }.first - p + klass.new names.sample end enum = GenericEnumerable.new(objects) |