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:
parent
24d244c1bc
commit
70a19b7d42
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue