Copy of: Allow spork-rails to work with Rails 4.0

https://github.com/digitaltoad/spork-rails/commit/b5dd589120f1ea3dd976b02a66bf4ec08876a44c