X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6704a6a0dcc3e0da2188003027b2b6e881fb521b..b8b9c3d1e9e412178426e9ba1b612e14e09f2320:/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