Added support for capybara 2.2.0 (required by edge rspec)