提交 687cd75f 编写于 作者: A Akshay Vishnoi

test case for #limit added - picking latest value from limit

上级 0dea33f7
......@@ -121,6 +121,10 @@ def test_limit_without_comma
assert_equal 1, Topic.limit(1).to_a.length
end
def test_limit_should_take_value_from_latest_limit
assert_equal 1, Topic.limit(2).limit(1).to_a.length
end
def test_invalid_limit
assert_raises(ArgumentError) do
Topic.limit("asdfadf").to_a
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册