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-unstable-2010.08.18 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.17 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.16 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.15 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.14 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.13 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.12 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.11 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.10 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.09 test/unit/test_pagination.rb
mongo_mapper-0.8.3 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.08 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.06 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.05 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.04 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.03 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.02 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.08.01 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.31 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.30 test/unit/test_pagination.rb