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