RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: jipiboily
Site: http://jipiboily.com
I've made some short testing and capybara-webkit is still around 20% faster in our use case. I suggest you try it for yourself and see, that's a matter of minutes or hours if run longer tests to have better metrics.
Just for the sake of new visitors, Rails has changed quite a bit during the last 4 years. Here's how you could do it now:
class ApplicationController < ActionController::Base protect_from_forgery rescue_from Whatever::Exception, :with => :whatever_exception private def whatever_exception # do something here end end
Here's some basic guide (official)
I've made some short testing and capybara-webkit is still around 20% faster in our use case. I suggest you try it for yourself and see, that's a matter of minutes or hours if run longer tests to have better metrics.
Just for the sake of new visitors, Rails has changed quite a bit during the last 4 years. Here's how you could do it now:
Here's some basic guide (official)