문제

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.

도움이 되었습니까?

해결책

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?

다른 팁

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top