Monday, January 10th, 2011
While trying to set up Capybara with Test::Unit, I ran into trouble finding documentation on how to do it. Ultimately, I found the answer in the gem’s README, but for those who just want to google-and-go, I figured I’d post this for you.
Simply, throw this in your Gemfile
group :test do
and run `bundle`
Now, open up test/test_helper.rb: we’re going to require capybara, and then crack open the integration test class to include Capybara and pass it your app
Capybara.app = Issuepad::Application
That should do it, let me know if you run into any other issues.