提交 71cf717e 编写于 作者: A Aaron Patterson

these are not real developer objects, so counting them doesn't make

sense.  Let's load the object to ensure it's an array and count the
array.
上级 863ea1b8
...@@ -651,7 +651,7 @@ def test_find_scoped_grouped ...@@ -651,7 +651,7 @@ def test_find_scoped_grouped
end end
def test_find_scoped_grouped_having def test_find_scoped_grouped_having
assert_equal 2, projects(:active_record).well_payed_salary_groups.size assert_equal 2, projects(:active_record).well_payed_salary_groups.to_a.size
assert projects(:active_record).well_payed_salary_groups.all? { |g| g.salary > 10000 } assert projects(:active_record).well_payed_salary_groups.all? { |g| g.salary > 10000 }
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册