title: How do I solve rspec errors end of ROR tutorial CH 9
body: <p>I got to the end of Chapter 9 of Michael Hartl's Ruby on Rails Tutorial and got failed rspec tests.  I have gone through the chapter many times and can't find what I did wrong.  Please help! Also, I am a two week old programmer so if you could detail the steps you went through debugging that would help me a lot! </p>
  
  <p>My git repo is at <a href="https://github.com/kerrieyee/sample_app" rel="nofollow">https://github.com/kerrieyee/sample_app</a> and The rspec results are as follows:</p>
  
  <pre><code>Macintosh-143:sample_app jeffreyyee$ bundle exec rspec spec/
  ..................................................................FF........FFFF.........
  
  Failures:
  
    1) User pages index delete links as an admin user 
   Failure/Error: it { should have_link('delete', href: user_path(User.first)) }
     expected link "delete" to return something
   # ./spec/requests/user_pages_spec.rb:45:in `block (5 levels) in &lt;top (required)&gt;'
  
    2) User pages index delete links as an admin user should be able to delete another user
   Failure/Error: expect { click_link('delete') }.to change(User, :count).by(-1)
   Capybara::ElementNotFound:
     no link with title, id or text 'delete' found
   # (eval):2:in `click_link'
   # ./spec/requests/user_pages_spec.rb:47:in `block (6 levels) in &lt;top (required)&gt;'
   # ./spec/requests/user_pages_spec.rb:47:in `block (5 levels) in &lt;top (required)&gt;'
  
    3) User pages signup with valid information should create a user
   Failure/Error: fill_in "Confirmation", with: "foobar"
   Capybara::ElementNotFound:
     cannot fill in, no text field, text area or password field with id, name, or label 'Confirmation' found
   # (eval):2:in `fill_in'
   # ./spec/requests/user_pages_spec.rb:96:in `block (4 levels) in &lt;top (required)&gt;'
  
    4) User pages signup with valid information after saving the user 
   Failure/Error: fill_in "Confirmation", with: "foobar"
   Capybara::ElementNotFound:
     cannot fill in, no text field, text area or password field with id, name, or label 'Confirmation' found
   # (eval):2:in `fill_in'
   # ./spec/requests/user_pages_spec.rb:96:in `block (4 levels) in &lt;top (required)&gt;'
  
    5) User pages signup with valid information after saving the user 
   Failure/Error: fill_in "Confirmation", with: "foobar"
   Capybara::ElementNotFound:
     cannot fill in, no text field, text area or password field with id, name, or label 'Confirmation' found
   # (eval):2:in `fill_in'
   # ./spec/requests/user_pages_spec.rb:96:in `block (4 levels) in &lt;top (required)&gt;'
  
    6) User pages signup with valid information after saving the user 
   Failure/Error: fill_in "Confirmation", with: "foobar"
   Capybara::ElementNotFound:
     cannot fill in, no text field, text area or password field with id, name, or label 'Confirmation' found
   # (eval):2:in `fill_in'
   # ./spec/requests/user_pages_spec.rb:96:in `block (4 levels) in &lt;top (required)&gt;'
  
  Finished in 4.83 seconds
  89 examples, 6 failures
  
  Failed examples:
  
  rspec ./spec/requests/user_pages_spec.rb:45 # User pages index delete links as an admin user 
  rspec ./spec/requests/user_pages_spec.rb:46 # User pages index delete links as an admin    user should be able to delete another user
  rspec ./spec/requests/user_pages_spec.rb:99 # User pages signup with valid information should create a user
  rspec ./spec/requests/user_pages_spec.rb:108 # User pages signup with valid information after saving the user 
  rspec ./spec/requests/user_pages_spec.rb:109 # User pages signup with valid information after saving the user 
  rspec ./spec/requests/user_pages_spec.rb:110 # User pages signup with valid information after saving the user 
  </code></pre>