test/test_data_mapper.rb in pagify-0.6.2 vs test/test_data_mapper.rb in pagify-0.7.0
- old
+ new
@@ -3,24 +3,25 @@
require 'test/helper_pagify'
require 'test/helper_model'
require 'pagify/data_mapper'
-class TestDataMapper < TestPagify
+class TestDataMapper < TestCase
+ include PagifyCase
def test_for_data_mapper
for_pager Pagify::DataMapperPager.new(Topic)
end
class Topic
class << self
def count opts = {}
101
end
def all opts = {}
- TestPagify.data[opts[:offset], opts[:limit]]
+ PagifyCase.data[opts[:offset], opts[:limit]]
end
def query
- nil
+ {}
end
private
def with_scope query
yield
end