User authentication

I wrote the RSpec test during my commit on April 20.  Then I wrote the code to pass the test.  Unfortunately, I could not get the test to pass, but the app appears to be working when I manually test.  I ended up rewriting some of the RSpec, but I'm still getting an error.  The RSpec edits came from Devise's github (https://github.com/plataformatec/devise/wiki/How-To:-Controllers-tests-with-Rails-3-(and-rspec)).

I'm not quite sure I understand what/why I'm receiving the error messages in the terminal during testing.

Here is the error:
<pre><code>╭─JulieHankinsUE@julies-mbp  ~/Code/blocitoff  ‹user-authentication*› 
╰─$ rspec spec                                                                               1 ↵
.F.F...

Failures:

  1) UsersController should redirect to root page after user logs in
     Failure/Error: get 'index'
     ActionController::UrlGenerationError:
       No route matches {:action=>"index", :controller=>"users"}
     # ./spec/controllers/users_controller_spec.rb:11:in `block (2 levels) in <top (required)>'

  2) UsersController should redirect to root page after user logs out
     Failure/Error: get 'index'
     ActionController::UrlGenerationError:
       No route matches {:action=>"index", :controller=>"users"}
     # ./spec/controllers/users_controller_spec.rb:24:in `block (2 levels) in <top (required)>'

Finished in 0.20167 seconds
7 examples, 2 failures

Failed examples:

rspec ./spec/controllers/users_controller_spec.rb:10 # UsersController should redirect to root page after user logs in
rspec ./spec/controllers/users_controller_spec.rb:23 # UsersController should redirect to root page after user logs out

Randomized with seed 26670</code></pre>