Skip to content

Instantly share code, notes, and snippets.

@emachnic
Created May 11, 2011 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emachnic/966335 to your computer and use it in GitHub Desktop.
Save emachnic/966335 to your computer and use it in GitHub Desktop.
RSpec/Capybara Error
1) user signs in should be successful
Failure/Error: page.body.should =~ "Successfully"
Rack::Test::Error:
No response yet. Request a page first.
# ./spec/integration/user_logs_in.rb:12:in `block (2 levels) in <top (required)>'
Finished in 0.44836 seconds
1 example, 1 failure
Ruby version 1.9.2p180, Rails version 3.1.0.beta1, RSpec version 2.6.0.rc6, Capybara version 0.4.1.2
@emachnic
Copy link
Author

Getting the above error using RSpec and Capybara. Can't seem to find anything about this. I've also tried with page.should have_content("Successfully") and page.body.should have_content("Successfully").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment