update tests for #1508

This commit is contained in:
Toks
2013-06-30 11:57:55 -04:00
parent 2016e15ce8
commit adf4c614f1
3 changed files with 5 additions and 7 deletions

View File

@@ -50,9 +50,8 @@ class ForumPostsControllerTest < ActionController::TestCase
end
should "fail if the editor is not the creator of the topic and is not a moderator" do
assert_raises(User::PrivilegeError) do
get :edit, {:id => @forum_post.id}, {:user_id => @other_user.id}
end
get :edit, {:id => @forum_post.id}, {:user_id => @other_user.id}
assert_redirected_to(new_session_path(:url => edit_forum_post_path(@forum_post)))
end
end