diff options
author | Arthur Nogueira Neves <github@arthurnn.com> | 2015-10-12 15:25:04 -0400 |
---|---|---|
committer | Arthur Nogueira Neves <github@arthurnn.com> | 2015-10-12 15:25:04 -0400 |
commit | 97cdab0680dfa5856f8ec3dfa85e7fafc7f334ae (patch) | |
tree | d721f57f028b76682efe5161af7600a9facdcd1f /activerecord/test | |
parent | 96747036715a658ab21e921919d45d6149949d55 (diff) | |
parent | 329642325e6d58676c68816ce61db4ea0e8944d3 (diff) | |
download | rails-97cdab0680dfa5856f8ec3dfa85e7fafc7f334ae.tar.gz rails-97cdab0680dfa5856f8ec3dfa85e7fafc7f334ae.tar.bz2 rails-97cdab0680dfa5856f8ec3dfa85e7fafc7f334ae.zip |
Merge pull request #21288 from yahonda/mysql_requires_password
Allow mysql and mysql2 tests run by database user with password
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/adapters/mysql/connection_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/mysql/connection_test.rb b/activerecord/test/cases/adapters/mysql/connection_test.rb index 8b62998964..5699fa110f 100644 --- a/activerecord/test/cases/adapters/mysql/connection_test.rb +++ b/activerecord/test/cases/adapters/mysql/connection_test.rb @@ -26,7 +26,7 @@ class MysqlConnectionTest < ActiveRecord::MysqlTestCase run_without_connection do ar_config = ARTest.connection_config['arunit'] - url = "mysql://#{ar_config["username"]}@localhost/#{ar_config["database"]}" + url = "mysql://#{ar_config["username"]}:#{ar_config["password"]}@localhost/#{ar_config["database"]}" Klass.establish_connection(url) assert_equal ar_config['database'], Klass.connection.current_database end |