Actually this does need to be in the lib folder since it needs to be available for third party driver tests if they are testing with rspec 2 -  however I think it should have been in lib/capybara/spec/spec_helper.rb  so I've moved it there