X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1303ba8c7d11b71c0366af4791af1e95f89b0211..e0d501f8327d66a394b2ba3f23185af640e10630:/test/controllers/site_controller_test.rb diff --git a/test/controllers/site_controller_test.rb b/test/controllers/site_controller_test.rb index 4d08a8d0c..6f6e7dcfa 100644 --- a/test/controllers/site_controller_test.rb +++ b/test/controllers/site_controller_test.rb @@ -178,7 +178,7 @@ class SiteControllerTest < ActionDispatch::IntegrationTest get edit_path assert_response :redirect - assert_redirected_to :controller => :users, :action => :login, :referer => "/edit" + assert_redirected_to login_path(:referer => "/edit") end # Test the error when trying to edit without public edits @@ -452,7 +452,7 @@ class SiteControllerTest < ActionDispatch::IntegrationTest def test_welcome get welcome_path assert_response :redirect - assert_redirected_to :controller => :users, :action => :login, :referer => "/welcome" + assert_redirected_to login_path(:referer => "/welcome") session_for(create(:user)) get welcome_path