clear all connections before forking

This commit is contained in:
Aaron Patterson 2013-08-31 13:13:49 -07:00
parent ccecf17b9b
commit a52966f612

@ -1337,6 +1337,9 @@ def test_marshal_between_processes
})
rd, wr = IO.pipe
ActiveRecord::Base.connection_handler.clear_all_connections!
fork do
rd.close
post = Post.new