title: Rails 4 integration testing cannot find link
body: <p>I am using rails 4 and capybara 2.1.0 and rspec 2.0 to develope a user registration model</p>
  
  <p>here is the contents of my spec</p>
  
  <pre><code>visit register_path  
  fill_in 'user[full_name]', with: "xxxx"
  click_button 'Register'
  expect(page).to find_link("Send hosting request")
  </code></pre>
  
  <p>on register form after clicking the register button i am creating a user and redirecting them to there page say user/1 on the user show template </p>
  
  <p>here is the show template</p>
  
  <pre><code>  &lt;div&gt;
    &lt;strong&gt;Full Name&lt;/strong&gt;
    &lt;%= @user.own_profile.full_name %&gt;
    &lt;/div&gt;
    &lt;%= link_to 'Send hosting request', root_path %&gt;
  </code></pre>
  
  <p>but when i run the test i got error saying cannot find link </p>
  
  <pre><code>1) Register Page Create User
     Failure/Error: find_link("Send hosting request")
     Capybara::ElementNotFound:
      Unable to find link "Send hosting request"
   # ./spec/integration/register_page_spec.rb:22:in `block (2 levels) in &lt;top (required)&gt;'
   # -e:1:in `&lt;main&gt;'
  </code></pre>
  
  <p>i don't understand why this test is failing when i have the link on the user page</p>
  
  <p>what can i do now</p>
  
  <p>when i use page.has_content?('Send hosting request') it returns true</p>