Skip to content

Commit 9914ef1

Browse files
committed
[Rails5] Coerce test with offset and no limit.
1 parent dfc1f71 commit 9914ef1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/cases/coerced_tests.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,3 +765,13 @@ def test_default_negative_integer_coerced
765765
assert_equal -5, record.negative_integer_before_type_cast
766766
end
767767
end
768+
769+
770+
771+
772+
module ActiveRecord
773+
class CollectionCacheKeyTest < ActiveRecord::TestCase
774+
# Will trust rails has this sorted since you cant offset without a limit.
775+
coerce_tests! %r{with offset which return 0 rows}
776+
end
777+
end

0 commit comments

Comments
 (0)