Fixes rails 4 deprecations, rspec changes.