title: Test Error Expected at least 1 element matching "login_path"
body: <p>I have an integration test that isn't working. It seems very straight forward why it won't work but i tried to fix it for about 2 hours and can't.</p>
  
  <p>Seems very straight forward. I can't see whats wrong with this. Any clues?</p>
  
  <p>The Error when i run rake test</p>
  
  <pre><code>  1) Failure:
  UsersLoginTest#test_login_with_valid_information_followed_by_logout [/Users/josephkonop/Documents/Safsy/Website/Safsy/Safsy/test/integration/users_login_test.rb:32]:
  Expected at least 1 element matching "a[href="/login"]", found 0..
  Expected 0 to be &gt;= 1.
  </code></pre>
  
  <p>The test. Line 32 is assert_select "a[href=?]", login_path</p>
  
  <pre><code>  test "login with valid information followed by logout" do
      get login_path
      post login_path, sessions: { email: @user.email, password: 'password' }
      assert is_logged_in?
      assert_redirected_to @user
      follow_redirect!
      assert_template 'users/show'
      assert_select "a[href=?]", login_path, count: 0
      assert_select "a[href=?]", logout_path
      assert_select "a[href=?]", user_path(@user)
      delete logout_path
      assert_not is_logged_in?
      assert_redirected_to root_url
      assert_select "a[href=?]", login_path
      assert_select "a[href=?]", signup_path
      assert_select "a[href=?]", logout_path,      count: 0
      assert_select "a[href=?]", user_path(@user), count: 0
    end
  </code></pre>
  
  <p>My _header where the login button is</p>
  
  <pre><code>      &lt;ul class="nav navbar-nav navbar-right"&gt;   
          &lt;% if logged_in? %&gt;
            &lt;li&gt;&lt;%= link_to "Users", users_path %&gt;&lt;/li&gt;
            &lt;li&gt;&lt;%= link_to "Dash", users_path %&gt;&lt;/li&gt;
            &lt;/li&gt;
            &lt;ul class="nav navbar-nav"&gt;
              &lt;li class="dropdown"&gt;
                &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"&gt;Items&lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
                &lt;ul class="dropdown-menu"&gt;
                  &lt;li&gt;&lt;%= link_to "New Item", new_item_path %&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;%= link_to "Edit Items", user_items_path %&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Mass Upload Items&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Upload Item Images&lt;/a&gt;&lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
            &lt;ul class="nav navbar-nav"&gt;
              &lt;li class="dropdown"&gt;
                &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"&gt;Profile&lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
                &lt;ul class="dropdown-menu"&gt;
                  &lt;li&gt;&lt;%= link_to "View Profile", user_path(current_user) %&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;%= link_to "Edit Profile", edit_user_path(current_user) %&gt;&lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
            &lt;li&gt;&lt;%= link_to "Messages", users_path %&gt;&lt;/li&gt;
            &lt;li&gt;&lt;%= link_to "Log out", logout_path, method: "delete" %&gt;&lt;/li&gt;
          &lt;% else %&gt;
            &lt;li&gt;&lt;%= link_to "Log In", login_path %&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;Sign Up&lt;/a&gt;&lt;/li&gt;
          &lt;% end %&gt;
        &lt;/ul&gt;
      &lt;/div&gt;&lt;!-- /.navbar-collapse --&gt;
    &lt;/div&gt;&lt;!-- /.container-fluid --&gt;
  &lt;/header&gt;
  </code></pre>