Making Culerity play along well with Capybara
It’s never an easy task to refactor infra-strcuture, specially if it uses different libraries. That’s the case with my latest endeavour of migrating from the Cucumber+WebRat+Selenium combo to Steak+Capybara+Culerity combo. The reason? Simplify. The process? Boring and troublesome, but *** happens and we have to deal with it
Anyway, if you are getting the following error when trying to run your acceptnace test spec/Cucumber feature when using Capybara+Culerity/Celerity:
custom_require.rb:31:in `require': no such file to load -- celerity (LoadError)
This is because (well, at least was for me) you haven’t installed the celerity gem on your local ruby (note the empahasis — not jruby!) installation. Do so:
$ sudo gem install celerity
Now, I will blame this confusion on the Culerity docs. The documentation states:
You will need the celerity gem installed into JRuby:
jruby -S gem install celerity
Now install the Culerity gem:
gem install culerity –source http://gemcutter.org
So, it instructs you to install celerity on jruby but not on ruby. But this didn’t work for me at all.
Anyway, feel free to comment/contact me if you could make it work the way it’s told on the documenation. Hope this saves someone else’s time

Thanks…this fixed a weird problem for me.
Everything worked fine for me except when the tests were run by Integrity (constant integration server). But after installing celerity for the standard ruby distribution, it is now working under Integrity as well. It doesn’t make any sense to me, but…