aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-12-22 12:21:18 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-12-22 12:21:18 -0700
commit367741ef22d1538b8550cf6e4b2276a0946066c0 (patch)
tree10a37a22b3e9cd6719203f802135ae76cc69e557 /activesupport/test/core_ext
parent2adc145264c5c30499d8837bf32536171aefca9a (diff)
downloadrails-367741ef22d1538b8550cf6e4b2276a0946066c0.tar.gz
rails-367741ef22d1538b8550cf6e4b2276a0946066c0.tar.bz2
rails-367741ef22d1538b8550cf6e4b2276a0946066c0.zip
Revert "Added Enumerable#pluck to wrap the common pattern of collect(&:method) *DHH*"
This reverts commit 4d20de8a50d889a09e6f5642984775fe796ca943. Conflicts: activesupport/CHANGELOG.md activesupport/lib/active_support/core_ext/enumerable.rb activesupport/test/core_ext/enumerable_test.rb
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r--activesupport/test/core_ext/enumerable_test.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activesupport/test/core_ext/enumerable_test.rb b/activesupport/test/core_ext/enumerable_test.rb
index 7c2aec3462..f10e6c82e4 100644
--- a/activesupport/test/core_ext/enumerable_test.rb
+++ b/activesupport/test/core_ext/enumerable_test.rb
@@ -117,11 +117,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