4 class LocationsControllerTest < ActionDispatch::IntegrationTest
6 # test all routes which lead to this controller
9 { :path => "/profile/location", :method => :get },
10 { :controller => "profiles/locations", :action => "show" }
13 { :path => "/profile/location", :method => :put },
14 { :controller => "profiles/locations", :action => "update" }
22 get profile_location_path
24 assert_response :success
28 def test_show_unauthorized
29 get profile_location_path
31 assert_redirected_to login_path(:referer => profile_location_path)