4 class PdDeclarationsControllerTest < ActionDispatch::IntegrationTest
6 # test all routes which lead to this controller
9 { :path => "/account/pd_declaration", :method => :get },
10 { :controller => "accounts/pd_declarations", :action => "show" }
14 def test_show_not_logged_in
15 get account_pd_declaration_path
17 assert_redirected_to login_path(:referer => account_pd_declaration_path)
24 get account_pd_declaration_path
26 assert_response :success