1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

changed all.map to pluck

This commit is contained in:
Sandeep 2012-03-19 15:16:49 +05:30
parent 24d244c1bc
commit 70a19b7d42

View file

@ -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