X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/12c1d5e6c05813a0697724277b4d8529a1a7c240..5add2d7e1d1d365e80d1d4ef417ff249ca7f35c0:/test/controllers/reports_controller_test.rb?ds=inline diff --git a/test/controllers/reports_controller_test.rb b/test/controllers/reports_controller_test.rb index 8374e76d9..25b80e8f4 100644 --- a/test/controllers/reports_controller_test.rb +++ b/test/controllers/reports_controller_test.rb @@ -4,7 +4,6 @@ class ReportsControllerTest < ActionDispatch::IntegrationTest def test_new_report_without_login target_user = create(:user) get new_report_path(:reportable_id => target_user.id, :reportable_type => "User") - assert_response :redirect assert_redirected_to login_path(:referer => new_report_path(:reportable_id => target_user.id, :reportable_type => "User")) end @@ -25,7 +24,6 @@ class ReportsControllerTest < ActionDispatch::IntegrationTest :issue => { :reportable_id => target_user.id, :reportable_type => "User" } }) end - assert_response :redirect assert_redirected_to user_path(target_user) end @@ -48,7 +46,6 @@ class ReportsControllerTest < ActionDispatch::IntegrationTest :issue => { :reportable_id => target_user.id, :reportable_type => "User" } }) end - assert_response :redirect assert_redirected_to user_path(target_user) issue = Issue.last @@ -92,7 +89,6 @@ class ReportsControllerTest < ActionDispatch::IntegrationTest :issue => { :reportable_id => target_user.id, :reportable_type => "User" } }) end - assert_response :redirect assert_redirected_to user_path(target_user) issue = Issue.last