This commit is contained in:
Toks
2014-01-08 17:06:56 -05:00
parent fac10ede98
commit cb629613bd
5 changed files with 7 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ class ForumTopicsControllerTest < ActionController::TestCase
should "fail if the editor is not the creator of the topic and is not a moderator" do
get :edit, {:id => @forum_topic.id}, {:user_id => @other_user.id}
assert_redirected_to(new_session_path(:url => edit_forum_topic_path(@forum_topic)))
assert_response(403)
end
end