开发者

Does Capybara require JRuby?

开发者 https://www.devze.com 2023-01-21 08:13 出处:网络
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'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?

0

精彩评论

暂无评论...
验证码 换一张
取 消