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