X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/11e97b3edb057f6f449209ca2afd169feda229a4..9f341430493cdaafb6ea9ce6ac29fc6af291d57c:/test/controllers/issue_comments_controller_test.rb?ds=inline 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