diff options
author | Akira Matsuda <ronnie@dio.jp> | 2017-01-09 18:36:32 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2017-01-10 19:39:11 +0900 |
commit | aa92d4a0faca31f53cbc0bb1fc1b599c8eb7a65d (patch) | |
tree | d5d37fdeda83c7b0b6260fec6992667a8ca17f1c /activerecord/test/cases/tasks/database_tasks_test.rb | |
parent | a8a97f7788da4642466fd4d4e959433135d0dbee (diff) | |
download | rails-aa92d4a0faca31f53cbc0bb1fc1b599c8eb7a65d.tar.gz rails-aa92d4a0faca31f53cbc0bb1fc1b599c8eb7a65d.tar.bz2 rails-aa92d4a0faca31f53cbc0bb1fc1b599c8eb7a65d.zip |
sqlite3_mem tests are broken since 79887593c18919fed49f441d64236362cb755872
since 79887593c18919fed49f441d64236362cb755872, create_all task recreates the connection to AR::Base
which doesn't connect to the in_memory database that is set up for tests
Diffstat (limited to 'activerecord/test/cases/tasks/database_tasks_test.rb')
-rw-r--r-- | activerecord/test/cases/tasks/database_tasks_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/tasks/database_tasks_test.rb b/activerecord/test/cases/tasks/database_tasks_test.rb index f7c53b5801..5653fd83fd 100644 --- a/activerecord/test/cases/tasks/database_tasks_test.rb +++ b/activerecord/test/cases/tasks/database_tasks_test.rb @@ -100,6 +100,8 @@ module ActiveRecord @configurations = { "development" => { "database" => "my-db" } } ActiveRecord::Base.stubs(:configurations).returns(@configurations) + # To refrain from connecting to a newly created empty DB in sqlite3_mem tests + ActiveRecord::Base.connection_handler.stubs(:establish_connection) end def test_ignores_configurations_without_databases |