Does Capybara require JRuby?
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 u开发者_运维知识库sing 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.
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
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?
精彩评论