aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep <sandeep.ravichandran@sourcebits.com>2012-03-19 15:16:49 +0530
committerSandeep <sandeep.ravichandran@sourcebits.com>2012-03-19 15:17:49 +0530
commit70a19b7d42f62be6bdb3f1ec14586e42cd9e33a8 (patch)
tree775a5e098620a000d6a64a9d45860fb165bf5dee
parent24d244c1bc1a744de599df18d74c9b343fd4c9fe (diff)
downloadrails-70a19b7d42f62be6bdb3f1ec14586e42cd9e33a8.tar.gz
rails-70a19b7d42f62be6bdb3f1ec14586e42cd9e33a8.tar.bz2
rails-70a19b7d42f62be6bdb3f1ec14586e42cd9e33a8.zip
changed all.map to pluck
-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