Sha256: eebbb8005494796638a03d083d3e6e9c7ae9a5109dd02a1b103525eaad507cf9
Contents?: true
Size: 558 Bytes
Versions: 1
Compression:
Stored size: 558 Bytes
Contents
require 'test_helper' class PaddingTest < ActiveSupport::TestCase test 'padding not alter total pages' do 19.times.each { |index| Record.create } relation = Record.page(1, length: 15, padding: 4) assert_equal 15, relation.size assert_equal 1, relation.total_pages relation = Record.page(2, length: 15, padding: 4) assert_equal 0, relation.size assert_equal 1, relation.total_pages relation = Record.page(3, length: 15, padding: 4) assert_equal 0, relation.size assert_equal 1, relation.total_pages end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pagers-3.1.0 | test/padding_test.rb |