Question

I'm building a Rails 3 app. I'm trying to learn Cucumber with Capybara.

  • Do I need JRuby to run Capybara via Cucumber?

I've used Webrat, but many people seem to be using Capybara, so I'd love to try.

I don't need JavaScript testing right away, but I want to install Capybara if I need in the end.

I read and read the Capybara documentation, but couldn't understand.

Was it helpful?

Solution

I haven't used Capybara myself, but from what I can glean from the readme, it doesn't look like it requires JRuby, depending on the JavaScript driver you use. For instance, if you want to use Culerity, then yes you need JRuby, since it needs to be in your path.

Are you having difficulty installing Capybara?

OTHER TIPS

Capybara does not require jRuby or the Selenium-RC drivers.

Simply do the following to setup Cucumber with Capybara.

$ gem install capybara cucumber
$ rails generate cucumber --capybara
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top