X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/550c4a3a45814fde5c809334c85f1ebc47659a82..31f4ab5c466bcbafb940db5668627f9922beaaba:/test/controllers/issue_comments_controller_test.rb diff --git a/test/controllers/issue_comments_controller_test.rb b/test/controllers/issue_comments_controller_test.rb index 99d244ff1..823d07776 100644 --- a/test/controllers/issue_comments_controller_test.rb +++ b/test/controllers/issue_comments_controller_test.rb @@ -8,7 +8,6 @@ class IssueCommentsControllerTest < ActionDispatch::IntegrationTest session_for(create(:user)) post issue_comments_path(:issue_id => issue) - assert_response :redirect assert_redirected_to :controller => :errors, :action => :forbidden assert_equal 0, issue.comments.length end @@ -20,7 +19,6 @@ class IssueCommentsControllerTest < ActionDispatch::IntegrationTest session_for(create(:administrator_user)) post issue_comments_path(:issue_id => issue, :issue_comment => { :body => "test comment" }) - assert_response :redirect assert_redirected_to issue assert_equal 1, issue.comments.length end