title: Functional Testing. Keep getting redirect
body: <p>I've been trying to write some tests and I've been getting this error for everyone of them.</p>
  
  <p>Expected response to be a redirect to <a href="http://test.host/accounts/1/projects/1" rel="nofollow">here</a> but was a redirect to <a href="http://test.host/login" rel="nofollow">here</a>.</p>
  
  <p>Here is my code for the test:</p>
  
  <pre><code>test "should go to projects show page" do
     get :show, id: @account, account_id: @project.account_id, employee_id: @consultant.id
     assert_redirected_to account_project_path
  end
  </code></pre>
  
  <p>I am new to this and have looked at multiple online resources regarding this issue and have read the <code>Rails Guides</code> section on functional testing. Am 
  I not setting the user in the session correctly? Any feedback would be greatly appreciated.</p>