added post controller test

This commit is contained in:
albert
2011-01-28 18:03:00 -05:00
parent 2053e6ad8c
commit 3ba52acfe0
6 changed files with 54 additions and 6 deletions

View File

@@ -50,8 +50,8 @@ module PostSets
end
def load_posts
@count = Post.fast_count(tags)
@posts = Post.tag_match(tags).before_id(before_id).all(:order => "posts.id desc", :limit => limit, :offset => offset)
@count = ::Post.fast_count(tags)
@posts = ::Post.tag_match(tags).before_id(before_id).all(:order => "posts.id desc", :limit => limit, :offset => offset)
end
def load_suggestions