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

@@ -23,7 +23,7 @@ class PostsController < ApplicationController
@post = Post.find(params[:id])
@version = PostVersion.find(params[:version_id])
@post.revert_to!(@version)
respond_width(@post)
respond_with(@post)
end
private