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.07.29 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.28 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.27 test/unit/test_pagination.rb
thorsson-mongo_mapper-0.8.2 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.26 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.23 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.21 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.20 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.19 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.18 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.16 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.15 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.14 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.13 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.12 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.09 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.08 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.07 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.06 test/unit/test_pagination.rb
mongo_mapper-unstable-2010.07.05 test/unit/test_pagination.rb