fix tests

This commit is contained in:
Toks
2015-07-15 01:01:05 -04:00
parent 0691477a3b
commit e041d7d615
2 changed files with 6 additions and 3 deletions

View File

@@ -89,7 +89,8 @@ class ForumPostsControllerTest < ActionController::TestCase
end
should "restore the post" do
post :undelete, {:id => @forum_post.id}, {:user_id => @user.id}
CurrentUser.user = @mod
post :undelete, {:id => @forum_post.id}, {:user_id => @mod.id}
assert_redirected_to(forum_post_path(@forum_post))
@forum_post.reload
assert_equal(false, @forum_post.is_deleted?)