diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2015-08-17 21:29:26 +0000 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2015-08-18 12:59:19 +0000 |
commit | 329642325e6d58676c68816ce61db4ea0e8944d3 (patch) | |
tree | 96374f66c97330a2d26ee598896f25e97baa308c /activerecord/test | |
parent | 2a2473fd71d75bcda68f70500178d32587700ab0 (diff) | |
download | rails-329642325e6d58676c68816ce61db4ea0e8944d3.tar.gz rails-329642325e6d58676c68816ce61db4ea0e8944d3.tar.bz2 rails-329642325e6d58676c68816ce61db4ea0e8944d3.zip |
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 ddbc007b87..2f50b35d53 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 |