Commit 1d21993decf3ec3faa4be808c41b81b53b9f7c9f
1 parent
d0fd1dbe
Exists in
master
and in
2 other branches
Added clone test [skip ci]
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
test/pagination_test.rb
... | ... | @@ -23,6 +23,12 @@ class PaginationTest < Minitest::Test |
23 | 23 | assert_equal "Relation loaded", error.message |
24 | 24 | end |
25 | 25 | |
26 | + def test_limit_relation_clone | |
27 | + products = Product.search("*") | |
28 | + assert_equal 10, products.limit(10).limit_value | |
29 | + assert_equal 10000, products.limit_value | |
30 | + end | |
31 | + | |
26 | 32 | def test_no_limit |
27 | 33 | names = 20.times.map { |i| "Product #{i}" } |
28 | 34 | store_names names | ... | ... |