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