Fix making an extra db file after testing for sqlite3

Testing for sqlite3 makes an extra db file `primary.sqlite3` as below.
```
$ bundle exec rake test:sqlite3
(snip)
$ git status
On branch test
Untracked files:
  (use "git add <file>..." to include in what will be committed)

        db/
```
This commit is contained in:
Takayuki Nakata 2019-11-26 09:32:22 +09:00
parent 04fb1a651d
commit a8009c6d0f
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ module ActiveRecord
fixtures :people
def setup
@writing_handler = ActiveRecord::Base.connection_handlers[:writing]
@writing_handler = ConnectionHandler.new
end
def teardown