]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/issue_comments_controller_test.rb
Merge remote-tracking branch 'upstream/pull/2506'
[rails.git] / test / controllers / issue_comments_controller_test.rb
index 00c80f32cf4afd379bbcfe87310a7124e5f8117b..db08ca3cf61e36fa20a766254d5d0552c03ecdda 100644 (file)
@@ -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