I have user_controller_spec.rb that fails and I'm not sure why.
require 'spec_helper' describe UsersController do describe "GET 'index'" do it "should be successful" do get 'index' response.should be_success end end end
When I run rspec, it says:
Failures: 1) UsersController GET 'index' should be successful Failure/Error: response.should be_success expected success? to return true, got false
Going to / home / page in the browser works fine.
Is there a way to get a more detailed reason for the failure?
Note:
This is rails3 and I am using rspec.
I also have a capybara stone, and a search for my solution shows that the only link to capybara is in my gem and gem.lock file.
source share