Merge pull request #1982 from velesin/posts_controller_replies_tests

Adds tests for PostsController#replies.
This commit is contained in:
Robin Ward
2014-02-20 13:36:31 -05:00
2 changed files with 18 additions and 16 deletions
+2 -3
View File
@@ -128,9 +128,8 @@ class PostsController < ApplicationController
end
def reply_history
@post = Post.where(id: params[:id]).first
guardian.ensure_can_see!(@post)
render_serialized(@post.reply_history, PostSerializer)
post = find_post_from_params
render_serialized(post.reply_history, PostSerializer)
end
def destroy