diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2014-01-01 09:38:37 +0900 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2014-01-01 09:38:37 +0900 |
commit | 85a1f7ae1e66cff7fa2cf8a1be3721da38acd579 (patch) | |
tree | 2a907e4bf2276db6841689b80f116b3f80796a24 /activerecord/test/cases/adapters/mysql | |
parent | eb9ced882d610c3031b1dad6d49a39dda0d623d2 (diff) | |
download | rails-85a1f7ae1e66cff7fa2cf8a1be3721da38acd579.tar.gz rails-85a1f7ae1e66cff7fa2cf8a1be3721da38acd579.tar.bz2 rails-85a1f7ae1e66cff7fa2cf8a1be3721da38acd579.zip |
Change the inexistent database name to inexistent_activerecord_unittest
to make this grant statement described in the document works
GRANT ALL PRIVILEGES ON inexistent_activerecord_unittest.* to 'rails'@'localhost';
Diffstat (limited to 'activerecord/test/cases/adapters/mysql')
-rw-r--r-- | activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb b/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb index 605a2d86e4..578f6301bd 100644 --- a/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb +++ b/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb @@ -18,7 +18,7 @@ module ActiveRecord def test_bad_connection_mysql assert_raise ActiveRecord::NoDatabaseError do - configuration = ActiveRecord::Base.configurations['arunit'].merge(database: 'should_not_exist-cinco-dog-db') + configuration = ActiveRecord::Base.configurations['arunit'].merge(database: 'inexistent_activerecord_unittest') connection = ActiveRecord::Base.mysql_connection(configuration) connection.exec_query('drop table if exists ex') end |