diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-22 12:21:29 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-22 12:21:29 -0700 |
commit | c0563cec6d87adafa99e3b86356c0e912e00030e (patch) | |
tree | fc8cec7685252c98788995ea2d8a1e9c70584e93 /activesupport/test | |
parent | 1945bafba2dba80ae0e5595127361fed8bb2d5de (diff) | |
download | rails-c0563cec6d87adafa99e3b86356c0e912e00030e.tar.gz rails-c0563cec6d87adafa99e3b86356c0e912e00030e.tar.bz2 rails-c0563cec6d87adafa99e3b86356c0e912e00030e.zip |
Revert "Added Enumerable#pluck to wrap the common pattern of collect(&:method) *DHH*"
This reverts commit 4d20de8a50d889a09e6f5642984775fe796ca943.
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/enumerable_test.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/activesupport/test/core_ext/enumerable_test.rb b/activesupport/test/core_ext/enumerable_test.rb index 7ce7c4d52d..cdfa991a34 100644 --- a/activesupport/test/core_ext/enumerable_test.rb +++ b/activesupport/test/core_ext/enumerable_test.rb @@ -126,11 +126,4 @@ class EnumerableTests < Test::Unit::TestCase assert_equal true, GenericEnumerable.new([ 1 ]).exclude?(2) assert_equal false, GenericEnumerable.new([ 1 ]).exclude?(1) end - - def test_pluck_single_method - person = Struct.new(:name) - people = [ person.new("David"), person.new("Jamie") ] - - assert_equal [ "David", "Jamie" ], people.pluck(:name) - end -end
\ No newline at end of file +end |