Sha256: ba5434210d04fd46dba64a499091ec82e2c4384cc4c963e4e9945fe26bdac7a9

Contents?: true

Size: 252 Bytes

Versions: 71

Compression:

Stored size: 252 Bytes

Contents

require 'test_helper'

class PaginationTest < Test::Unit::TestCase
  should "default per_page to 25" do
    Doc().per_page.should == 25
  end

  should "allow overriding per_page" do
    Doc() { def self.per_page; 1 end }.per_page.should == 1
  end
end

Version data entries

71 entries across 71 versions & 9 rubygems

Version Path
mongo_mapper-0.12.0 test/unit/test_pagination.rb
lookout-mongo_mapper-0.11.3 test/unit/test_pagination.rb
mongo_mapper-0.11.2 test/unit/test_pagination.rb
jamieorc-mongo_mapper-0.11.1.1 test/unit/test_pagination.rb
mongo_mapper-0.11.1 test/unit/test_pagination.rb
mongo_mapper-0.11.0 test/unit/test_pagination.rb
mongo_mapper-0.10.1 test/unit/test_pagination.rb
mongo_mapper-0.10.0 test/unit/test_pagination.rb
mongo_mapper-0.9.2 test/unit/test_pagination.rb
jonbell-mongo_mapper-0.8.6 test/unit/test_pagination.rb
mongo_mapper-0.9.1 test/unit/test_pagination.rb
mongo_mapper-0.9.0 test/unit/test_pagination.rb
ign-mongo_mapper-0.8.6.2 test/unit/test_pagination.rb
ign-mongo_mapper-0.8.6.1 test/unit/test_pagination.rb
ssherman-mongo_mapper-0.8.6 test/unit/test_pagination.rb
mongo_mapper-0.8.6 test/unit/test_pagination.rb
mongo_mapper-0.8.5 test/unit/test_pagination.rb
honkster-mongo_mapper-0.8.4 test/unit/test_pagination.rb
mongo_mapper-0.8.4 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.19 test/unit/test_pagination.rb