]> git.openstreetmap.org Git - rails.git/blob - test/controllers/dashboards_controller_test.rb
Create api changeset download resource
[rails.git] / test / controllers / dashboards_controller_test.rb
1 require "test_helper"
2
3 class DashboardsControllerTest < ActionDispatch::IntegrationTest
4   ##
5   # test all routes which lead to this controller
6   def test_routes
7     assert_routing(
8       { :path => "/dashboard", :method => :get },
9       { :controller => "dashboards", :action => "show" }
10     )
11   end
12
13   def test_show_unauthorized
14     get dashboard_path
15
16     assert_redirected_to login_path(:referer => dashboard_path)
17   end
18 end