X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/721f8e00b287974d6346e3c62bb8d0d599cc7db3..49fac49f9d6a3d49c2cd56b605ee1ba9323dffb6:/test/controllers/dashboards_controller_test.rb diff --git a/test/controllers/dashboards_controller_test.rb b/test/controllers/dashboards_controller_test.rb index 0adf58a9e..c55636585 100644 --- a/test/controllers/dashboards_controller_test.rb +++ b/test/controllers/dashboards_controller_test.rb @@ -9,4 +9,10 @@ class DashboardsControllerTest < ActionDispatch::IntegrationTest { :controller => "dashboards", :action => "show" } ) end + + def test_show_unauthorized + get dashboard_path + + assert_redirected_to login_path(:referer => dashboard_path) + end end