Using Capybara without Cucumber in Rails 3

by Trevor Turk

I’ve been enjoying using Cucumber in a recent project, but I think it’s mainly because I enjoy integration testing and working with Capybara. So, I wondered if it was possible to use Capybara in Rails 3. It turns out it’s quite simple.

While this article is helpful, it’s a bit long and has some critical info buried in the comments.

I’ll cover the subject in brief here:

https://gist.github.com/751452?file=Gemfile

https://gist.github.com/751452?file=test_helper.rb

https://gist.github.com/751452?file=example_test.rb

Advertisement