Permalink
Browse files

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';
  • Loading branch information...
1 parent eb9ced8 commit 85a1f7ae1e66cff7fa2cf8a1be3721da38acd579 @yahonda yahonda committed Jan 1, 2014
@@ -18,7 +18,7 @@ def setup
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
@@ -15,7 +15,7 @@ def teardown
def test_bad_connection
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.mysql2_connection(configuration)
connection.exec_query('drop table if exists ex')
end

0 comments on commit 85a1f7a

Please sign in to comment.