]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/dashboards_controller_test.rb
Remove current user check from dashboard view
[rails.git] / test / controllers / dashboards_controller_test.rb
index 0adf58a9e4b4cb368c3758a074eba24c83d5541e..c55636585ed97044eafbee1d7e53b64770bf7965 100644 (file)
@@ -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