nulldb/nulldb — pull request #26 by jeremyf (2012-07-06 12:39:03+00:00)
Title: Fix case where Rails engine testing may result in a not yet connected da...

...tabase.

In the project I was working on, I was encountering a point where the
ActiveRecord::Base.connection_pool had not yet been connected. This raised an
exception. This patch catches the current exception that is thrown.

I'm not entirely satisified with the exception handling, as it relates to the
inner working of ActiveRecord::Base; However, NullDB is meant to be an
ActiveRecord adaptor, so this is perhaps germain to the test suite.