rails/rails — pull request #7196 by rimidl (2012-07-29 17:35:08+00:00)
Title: Fix incorrect usage `require mysql` in the activerecord/.../mysql_rake_test

`require mysql` used here for the 6 **hard** mysql-spesifics tests only (see [MysqlDBCreateAsRootTest](https://github.com/rimidl/rails/pull/new/fix-incorrect-require-mysql-in-mysql_rake_test#L0R46)). But we don't should run it for the sqlite or postgresql database contexts. And of course we don't should `require mysql`, when we run tests only for sqlite (`ARCONN=sqlite3 ruby -Itest .../mysql_rake_test.rb`), for example.

\+ if we follow the guides [Set up and Run the Tests](http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#set-up-and-run-the-tests) ,
we naturally catch error bellow:

```
rails/ $ rm .bundle/config
rails/ $ bundle install --without db
rails/ $ cd activerecord
activerecord/ $ ARCONN=mysql ruby -Itest test/cases/tasks/mysql_rake_test.rb
...
(mysql is not part of the bundle. Add it to Gemfile.) (LoadError)
...
```

This pull-request fix this error.

_Note:_ `MysqlDBCreateAsRootTest` don't pass with mysql2 adapter, only with mysql.