提交 e8d5920b 编写于 作者: D Damien Mathieu

#first doesn't take an order in this test

上级 bd17c762
......@@ -181,7 +181,7 @@ def test_first_and_last_should_support_find_options
end
def test_first_and_last_should_allow_integers_for_limit
assert_equal Topic.base.first(2), Topic.base.order("id").to_a.first(2)
assert_equal Topic.base.first(2), Topic.base.to_a.first(2)
assert_equal Topic.base.last(2), Topic.base.order("id").to_a.last(2)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册