X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6704a6a0dcc3e0da2188003027b2b6e881fb521b..8277f29c907ba3240fdd409b3da2c24b5466cb42:/test/controllers/dashboards_controller_test.rb?ds=sidebyside 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