From 70a19b7d42f62be6bdb3f1ec14586e42cd9e33a8 Mon Sep 17 00:00:00 2001 From: Sandeep Date: Mon, 19 Mar 2012 15:16:49 +0530 Subject: changed all.map to pluck --- activerecord/test/cases/base_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test/cases/base_test.rb') 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 -- cgit v1.2.3