aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-03-19 03:25:01 -0700
committerXavier Noria <fxn@hashref.com>2012-03-19 03:25:01 -0700
commit50b3113eb4ca29fdf6db44b4ef07861c6a0f58c4 (patch)
tree4d519fc6bad84f01e92fb63320e5aef53e548f97 /activerecord
parent98dc67cf5af5ae9516a047950e63eb4d6dde27ef (diff)
parent70a19b7d42f62be6bdb3f1ec14586e42cd9e33a8 (diff)
downloadrails-50b3113eb4ca29fdf6db44b4ef07861c6a0f58c4.tar.gz
rails-50b3113eb4ca29fdf6db44b4ef07861c6a0f58c4.tar.bz2
rails-50b3113eb4ca29fdf6db44b4ef07861c6a0f58c4.zip
Merge pull request #5507 from sandeepravi/warning_fixes
changed all.map to pluck
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/base_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb
index bddaf6afa8..fb2f66c4f8 100644
--- a/activerecord/test/cases/base_test.rb
+++ b/activerecord/test/cases/base_test.rb
@@ -163,7 +163,7 @@ class BasicsTest < ActiveRecord::TestCase
def test_select_symbol
topic_ids = Topic.select(:id).map(&:id).sort
- assert_equal Topic.all.map(&:id).sort, topic_ids
+ assert_equal Topic.pluck(:id).sort, topic_ids
end
def test_table_exists