X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b70da7b8ea15ab48bb2f34155567cea6dffc8fc9..c6ef508874a1a75db692214dfc7712e46796f461:/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