提交 70a19b7d 编写于 作者: S Sandeep

changed all.map to pluck

上级 24d244c1
......@@ -163,7 +163,7 @@ def test_limit_should_allow_sql_literal
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册