revamped pool tests

This commit is contained in:
albert
2011-06-10 01:02:09 -04:00
parent f67374da83
commit ca7afc10be
7 changed files with 272 additions and 153 deletions

View File

@@ -10,7 +10,7 @@ module PostSets
def slice(relation)
if before_id
relation.where("id < ?", before_id).limit(limit).all
relation.where("id < ?", before_id).order("id desc").limit(limit).all
elsif after_id
relation.where("id > ?", after_id).order("id asc").limit(limit).all.reverse
else