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