Force RAILS_ENV=development in rackup_test.rb. This fixes a problem on the CI server. For some reason the RAILS_ENV on the CI server is production, which means that the ActionDispatch::Static middleware is not used, and so the request in 'config.ru can be racked up' returns a 404 rather than a 200.
Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
Bring back oracle specific crap
Fix typo
Fix adapter_test.rb to make no assumptions about the database name
load_path_test.rb is also dependent on RAILS_ENV=development
framework_test.rb also dependent on RAILS_ENV=development
loading_test.rb with RAILS_ENV=development
Fix for CI server. Dependent on RAILS_ENV=development
Merge pull request #1506 from arunagw/3-0-stable

Cherry-picked from master to fix the build
Solve the RAILS_ENV problem in the railties tests in a more generic way
fixes Rake::GemPackageTask deprecation warnings from rake 0.9.0
fixes Rake::RDocTask deprecation warnings from rake 0.9.0 (cherry picked
b921679 for 3-0-stable)
cherry picked 24b28a2 for 3-0-stable. Original Author: amatsuda
cherry picked 05adf524 for 3-0-stable. Original Author: amatsuda
Merge pull request #1511 from vijaydev/rake_rdoc_fixes_cherry_picks_3_0

Rake rdoc fixes cherry picks for 3-0-stable
Fix another CIfail :zap: :fire: Deleting RAILS_ENV from ENV doesn't produce the desired result if RACK_ENV is still defined. And in any case it's better to be explicit here, so just set RALS_ENV=development.
Fix double definition of #teardown. Thanks @mike-burns :+1:
Make sure that the build/drop database rake tasks take account of the test/config.yml config
please use ruby -I lib:test path/to/test.rb, or export RUBY_OPT