Fix railties tests in master

Tests are failing due to missing env var on master https://travis-ci.org/rails/rails/jobs/15930622#L641

This adds an environment variable `ENV['RAILS_SECRET_KEY_BASE']` so these tests will pass.
Merge pull request #13472 from schneems/schneems/fix-master-database-url-tests

Fix railties tests in master