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