X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/424b6ef1cf760c4a3e27ac1e6f612ae42a9cd493..d9b8ebeb01e6cf81f6d9ea70748fedb14e4d86fa:/test/controllers/issue_comments_controller_test.rb?ds=sidebyside diff --git a/test/controllers/issue_comments_controller_test.rb b/test/controllers/issue_comments_controller_test.rb index 00c80f32c..db08ca3cf 100644 --- a/test/controllers/issue_comments_controller_test.rb +++ b/test/controllers/issue_comments_controller_test.rb @@ -9,7 +9,8 @@ class IssueCommentsControllerTest < ActionController::TestCase post :create, :params => { :issue_id => issue.id } assert_response :redirect - assert_redirected_to root_path + assert_redirected_to :controller => :errors, :action => :forbidden + assert_equal 0, issue.comments.length end def test_comment