test/unit/test_pagination.rb in mongo_mapper-unstable-2009.12.30 vs test/unit/test_pagination.rb in mongo_mapper-unstable-2010.1.4
- old
+ new
@@ -60,9 +60,15 @@
end
should "alias offset to skip" do
PaginationProxy.new(25, 2, 10).offset.should == 10
end
+
+ should "return true for === Array" do
+ collection = PaginationProxy.new(25, 2, 10)
+ collection.subject = [1, 2]
+ collection.should === Array
+ end
context "previous_page" do
should "be nil if current page 1" do
PaginationProxy.new(25, 1, 10).previous_page.should be_nil
end
\ No newline at end of file