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